]> granicus.if.org Git - php/commitdiff
MFH:
authorBrian France <bfrance@php.net>
Fri, 10 Mar 2006 18:19:29 +0000 (18:19 +0000)
committerBrian France <bfrance@php.net>
Fri, 10 Mar 2006 18:19:29 +0000 (18:19 +0000)
        for the primary file only lookup the real file path and
        add it to the included_files list if already opened
        otherwise it will get opened and added to the included_files list in zend_execute_scripts

main/main.c

index 7dafc652b73385afe8f12a0a55c431627e90d83c..4c9c4bc508379530247c1d093e578246bd86cee1 100644 (file)
@@ -1681,7 +1681,10 @@ PHPAPI int php_execute_script(zend_file_handle *primary_file TSRMLS_DC)
                        VCWD_CHDIR_FILE(primary_file->filename);
                }
 
-               if (primary_file->filename) {                   
+               /* Only lookup the real file path and add it to the included_files list if already opened
+                *   otherwise it will get opened and added to the included_files list in zend_execute_scripts
+                */
+               if (primary_file->filename && primary_file->type != ZEND_HANDLE_FILENAME) {                     
                        int realfile_len;
                        int dummy = 1;
                        if (VCWD_REALPATH(primary_file->filename, realfile)) {