cvs: ZendEngine2 / zend.c
| From: | Stanislav Malyshev | Date: | Wed, 04 May 2005 16:17:33 +0000 |
| Subject: | cvs: ZendEngine2 / zend.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-3651@lists.php.net to get a copy of this message | ||
stas Wed May 4 12:17:33 2005 EDT
Modified files:
/ZendEngine2 zend.c
Log:
fix bug #32924: prepend does not add file to included files
http://cvs.php.net/diff.php/ZendEngine2/zend.c?r1=1.297&r2=1.298&ty=u
Index: ZendEngine2/zend.c
diff -u ZendEngine2/zend.c:1.297 ZendEngine2/zend.c:1.298
--- ZendEngine2/zend.c:1.297 Tue Mar 15 18:46:29 2005
+++ ZendEngine2/zend.c Wed May 4 12:17:33 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend.c,v 1.297 2005/03/15 23:46:29 wez Exp $ */
+/* $Id: zend.c,v 1.298 2005/05/04 16:17:33 stas Exp $ */
#include "zend.h"
#include "zend_extensions.h"
@@ -1053,6 +1053,10 @@
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;