From b0f8ed599a62a63971eb1b8d854f99ac3ed9eea7 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Thu, 23 Apr 2020 12:17:32 +0300 Subject: [PATCH] Do not change scope for zephir_read_property --- kernels/ZendEngine3/object.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kernels/ZendEngine3/object.c b/kernels/ZendEngine3/object.c index 63713bae66..fe6f29fabe 100644 --- a/kernels/ZendEngine3/object.c +++ b/kernels/ZendEngine3/object.c @@ -484,7 +484,7 @@ int zephir_read_property(zval *result, zval *object, const char *property_name, return FAILURE; } - ce = Z_OBJCE_P(object); +/* ce = Z_OBJCE_P(object); if (ce->parent) { ce = zephir_lookup_class_ce(ce, property_name, property_length); @@ -497,7 +497,7 @@ int zephir_read_property(zval *result, zval *object, const char *property_name, old_scope = EG(scope); EG(scope) = ce; #endif - +*/ if (!Z_OBJ_HT_P(object)->read_property) { const char *class_name; @@ -515,12 +515,13 @@ int zephir_read_property(zval *result, zval *object, const char *property_name, } zval_ptr_dtor(&property); - +/* #if PHP_VERSION_ID >= 70100 EG(fake_scope) = old_scope; #else EG(scope) = old_scope; #endif +*/ return SUCCESS; }