summaryrefslogtreecommitdiff
path: root/Zend/zend_execute_API.c
diff options
context:
space:
mode:
authorAndrei Zmievski <andrei@php.net>2001-02-03 07:21:35 +0000
committerAndrei Zmievski <andrei@php.net>2001-02-03 07:21:35 +0000
commit088a4b7151928d49430544279dff76c5a6a59244 (patch)
tree2f4e3b45a5f0f4955d38cc68f4d7e7aa5cf27bf0 /Zend/zend_execute_API.c
parent56d3b036ec69ea8d2465ca31e5794e58081890b8 (diff)
downloadphp-git-088a4b7151928d49430544279dff76c5a6a59244.tar.gz
Set the correct function state during execution. This is mainly to have
get_active_function_name() to return proper value.
Diffstat (limited to 'Zend/zend_execute_API.c')
-rw-r--r--Zend/zend_execute_API.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c
index 53bd1ab958..0e3b4eb4c0 100644
--- a/Zend/zend_execute_API.c
+++ b/Zend/zend_execute_API.c
@@ -417,6 +417,8 @@ int call_user_function_ex(HashTable *function_table, zval **object_pp, zval *fun
zend_ptr_stack_n_push(&EG(argument_stack), 2, (void *) (long) param_count, NULL);
+ EG(function_state_ptr) = &function_state;
+
if (function_state.function->type == ZEND_USER_FUNCTION) {
calling_symbol_table = EG(active_symbol_table);
if (symbol_table) {