diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2009-06-18 06:39:11 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2009-06-18 06:39:11 +0000 |
commit | c6de8de302b03c739bb34469853185c9f306c602 (patch) | |
tree | a8285c72480ce2787df45e5359d029ce0e8917a5 /main | |
parent | c3bf1cd27398b7fabf56bfcd2dfa81a2e6dbbeb0 (diff) | |
download | php-git-c6de8de302b03c739bb34469853185c9f306c602.tar.gz |
Fix bug #48592
Diffstat (limited to 'main')
-rw-r--r-- | main/fopen_wrappers.c | 4 |
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 |