summaryrefslogtreecommitdiff
path: root/Zend/zend_API.c
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/zend_API.c')
-rw-r--r--Zend/zend_API.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zend/zend_API.c b/Zend/zend_API.c
index 2487d5e239..dd5cd3888d 100644
--- a/Zend/zend_API.c
+++ b/Zend/zend_API.c
@@ -2312,6 +2312,7 @@ static int zend_is_callable_check_func(int check_flags, zval ***zobj_ptr_ptr, ze
char *lmname, *colon;
int clen, mlen;
zend_function *fptr;
+ zend_class_entry *last_scope;
HashTable *ftable;
if (error) {
@@ -2359,7 +2360,7 @@ static int zend_is_callable_check_func(int check_flags, zval ***zobj_ptr_ptr, ze
/* This is a compound name.
* Try to fetch class and then find static method. */
- zend_class_entry *last_scope = EG(scope);
+ last_scope = EG(scope);
if (ce_org) {
EG(scope) = ce_org;
}