summaryrefslogtreecommitdiff
path: root/Zend/zend_builtin_functions.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2014-07-03 02:34:43 +0400
committerDmitry Stogov <dmitry@zend.com>2014-07-03 02:34:43 +0400
commitc4d99ec982e214d05b398694dc76a9caac16fbd1 (patch)
treeec5c9a08f9100325b1f3811ff71ad8c84ccbc07a /Zend/zend_builtin_functions.c
parent0a77dcd4b9046adb7c8f719ded19c5eff0c8976a (diff)
downloadphp-git-c4d99ec982e214d05b398694dc76a9caac16fbd1.tar.gz
Removed EG(called_scope) and use corresponding value from EG(current_execute_data)
Diffstat (limited to 'Zend/zend_builtin_functions.c')
-rw-r--r--Zend/zend_builtin_functions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_builtin_functions.c b/Zend/zend_builtin_functions.c
index d6ca5c76d5..a9b7a6c12b 100644
--- a/Zend/zend_builtin_functions.c
+++ b/Zend/zend_builtin_functions.c
@@ -809,8 +809,8 @@ ZEND_FUNCTION(get_called_class)
return;
}
- if (EG(called_scope)) {
- RETURN_STR(STR_COPY(EG(called_scope)->name));
+ if (EG(current_execute_data)->called_scope) {
+ RETURN_STR(STR_COPY(EG(current_execute_data)->called_scope->name));
} else if (!EG(scope)) {
zend_error(E_WARNING, "get_called_class() called from outside a class");
}