summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2018-05-03 19:27:04 +0300
committerDmitry Stogov <dmitry@zend.com>2018-05-03 19:27:04 +0300
commiteafa92ba9d315106dede5aa154f81d0a4b34fe57 (patch)
treef41dd0d7576592548fe636034ed2986eb3bb62e0 /ext/reflection/php_reflection.c
parentfdb347a7539bde2c02b7efaae25583581c77b88e (diff)
downloadphp-git-eafa92ba9d315106dede5aa154f81d0a4b34fe57.tar.gz
zend_fcall_info_cache.calling_scope is not used by zend_call_function() and doesn't have to be initialized.
It's used only as a result of zend_is_callable() in forward_static_call and spl_autoload.
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r--ext/reflection/php_reflection.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index 42e4ee3c53..391183addf 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -1354,7 +1354,6 @@ static void _reflection_export(INTERNAL_FUNCTION_PARAMETERS, zend_class_entry *c
fci.no_separation = 1;
fcc.function_handler = ce_ptr->constructor;
- fcc.calling_scope = ce_ptr;
fcc.called_scope = Z_OBJCE(reflector);
fcc.object = Z_OBJ(reflector);
@@ -1880,7 +1879,6 @@ ZEND_METHOD(reflection_function, invoke)
fci.no_separation = 1;
fcc.function_handler = fptr;
- fcc.calling_scope = zend_get_executed_scope();
fcc.called_scope = NULL;
fcc.object = NULL;
@@ -1940,7 +1938,6 @@ ZEND_METHOD(reflection_function, invokeArgs)
fci.no_separation = 1;
fcc.function_handler = fptr;
- fcc.calling_scope = zend_get_executed_scope();
fcc.called_scope = NULL;
fcc.object = NULL;
@@ -3198,7 +3195,6 @@ static void reflection_method_invoke(INTERNAL_FUNCTION_PARAMETERS, int variadic)
fci.no_separation = 1;
fcc.function_handler = mptr;
- fcc.calling_scope = obj_ce;
fcc.called_scope = intern->ce;
fcc.object = object ? Z_OBJ_P(object) : NULL;
@@ -4758,7 +4754,6 @@ ZEND_METHOD(reflection_class, newInstance)
fci.no_separation = 1;
fcc.function_handler = constructor;
- fcc.calling_scope = zend_get_executed_scope();
fcc.called_scope = Z_OBJCE_P(return_value);
fcc.object = Z_OBJ_P(return_value);
@@ -4859,7 +4854,6 @@ ZEND_METHOD(reflection_class, newInstanceArgs)
fci.no_separation = 1;
fcc.function_handler = constructor;
- fcc.calling_scope = zend_get_executed_scope();
fcc.called_scope = Z_OBJCE_P(return_value);
fcc.object = Z_OBJ_P(return_value);