Added missing lazy initialization

This commit is contained in:
Dmitry Stogov 2008-04-29 09:18:26 +00:00
parent 52af9124b5
commit 3a86a06619
2 changed files with 6 additions and 0 deletions

View File

@ -1292,6 +1292,9 @@ ZEND_API int zend_eval_string(char *str, zval *retval_ptr, char *string_name TSR
EG(return_value_ptr_ptr) = &local_retval_ptr;
EG(active_op_array) = new_op_array;
EG(no_extensions)=1;
if (!EG(active_symbol_table)) {
zend_rebuild_symbol_table(TSRMLS_C);
}
zend_execute(new_op_array TSRMLS_CC);

View File

@ -243,6 +243,9 @@ static int spl_autoload(const char *class_name, const char * lc_name, int class_
if (new_op_array) {
EG(return_value_ptr_ptr) = &result;
EG(active_op_array) = new_op_array;
if (!EG(active_symbol_table)) {
zend_rebuild_symbol_table(TSRMLS_C);
}
zend_execute(new_op_array TSRMLS_CC);