summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2009-06-18 06:39:11 +0000
committerRasmus Lerdorf <rasmus@php.net>2009-06-18 06:39:11 +0000
commitc6de8de302b03c739bb34469853185c9f306c602 (patch)
treea8285c72480ce2787df45e5359d029ce0e8917a5 /main
parentc3bf1cd27398b7fabf56bfcd2dfa81a2e6dbbeb0 (diff)
downloadphp-git-c6de8de302b03c739bb34469853185c9f306c602.tar.gz
Fix bug #48592
Diffstat (limited to 'main')
-rw-r--r--main/fopen_wrappers.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c
index 056adc4d85..d4cbf0a9ca 100644
--- a/main/fopen_wrappers.c
+++ b/main/fopen_wrappers.c
@@ -403,7 +403,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