Browse Source

fix bug #32924: prepend does not add file to included files

PHP-5.1
Stanislav Malyshev 22 years ago
parent
commit
7b34bb2be7
  1. 4
      Zend/zend.c

4
Zend/zend.c

@ -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;

Loading…
Cancel
Save