]> granicus.if.org Git - php/commitdiff
fix bug #32924: prepend does not add file to included files
authorStanislav Malyshev <stas@php.net>
Wed, 4 May 2005 16:17:33 +0000 (16:17 +0000)
committerStanislav Malyshev <stas@php.net>
Wed, 4 May 2005 16:17:33 +0000 (16:17 +0000)
Zend/zend.c

index 0000caeff4cb1486bced2224f61467ae65c941db..2b5c03679daa9193afc556c7ee3d005d1a8896fc 100644 (file)
@@ -1053,6 +1053,10 @@ ZEND_API int zend_execute_scripts(int type TSRMLS_DC, zval **retval, int file_co
                        continue;
                }
                EG(active_op_array) = zend_compile_file(file_handle, ZEND_INCLUDE TSRMLS_CC);
+               if(file_handle->opened_path) {
+                       int dummy=1;
+                       zend_hash_add(&EG(included_files), file_handle->opened_path, strlen(file_handle->opened_path)+1, (void *)&dummy, sizeof(int), NULL);
+               }
                zend_destroy_file_handle(file_handle TSRMLS_CC);
                if (EG(active_op_array)) {
                        EG(return_value_ptr_ptr) = retval ? retval : &local_retval;