mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
Added missing lazy initialization
This commit is contained in:
parent
52af9124b5
commit
3a86a06619
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user