diff options
Diffstat (limited to 'Zend/zend_execute_API.c')
| -rw-r--r-- | Zend/zend_execute_API.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index ba97c18410..a5e1d0c996 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -103,6 +103,8 @@ void init_executor(CLS_D ELS_DC) EG(function_table) = CG(function_table); EG(class_table) = CG(class_table); + EG(in_execution) = 0; + zend_ptr_stack_init(&EG(argument_stack)); EG(main_op_array) = NULL; @@ -201,6 +203,14 @@ ZEND_API uint zend_get_executed_lineno(ELS_D) } +ZEND_API zend_bool zend_is_executing() +{ + ELS_FETCH(); + + return EG(in_execution); +} + + ZEND_API inline void safe_free_zval_ptr(zval *p) { ELS_FETCH(); |
