This commit is contained in:
Rasmus Lerdorf 2009-06-18 06:32:38 +00:00
parent dabcff916d
commit e70abda281

View File

@ -451,7 +451,9 @@ PHPAPI int php_fopen_primary_script(zend_file_handle *file_handle TSRMLS_DC)
}
} /* if doc_root && path_info */
filename = zend_resolve_path(filename, strlen(filename) TSRMLS_CC);
if(filename) {
filename = zend_resolve_path(filename, strlen(filename) TSRMLS_CC);
}
if (!filename) {
/* we have to free SG(request_info).path_translated here because