From b10b73eb866d44dbd69343a94501bdc7f0994197 Mon Sep 17 00:00:00 2001 From: Gabriel Caruso Date: Thu, 16 Apr 2020 10:39:25 +0200 Subject: [PATCH] Fix magic method name --- Zend/zend_compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index 9d186b30fd..bb9b42fee6 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -6158,7 +6158,7 @@ void zend_begin_method_decl(zend_op_array *op_array, zend_string *name, zend_boo ce->__unset = (zend_function *) op_array; ce->ce_flags |= ZEND_ACC_USE_GUARDS; } else if (zend_string_equals_literal(lcname, ZEND_ISSET_FUNC_NAME)) { - zend_check_magic_method_attr(fn_flags, ce, "__unset", 0); + zend_check_magic_method_attr(fn_flags, ce, "__isset", 0); ce->__isset = (zend_function *) op_array; ce->ce_flags |= ZEND_ACC_USE_GUARDS; } else if (zend_string_equals_literal(lcname, ZEND_TOSTRING_FUNC_NAME)) { -- 2.40.0