]> granicus.if.org Git - php/commitdiff
Fix magic method name
authorGabriel Caruso <carusogabriel34@gmail.com>
Thu, 16 Apr 2020 08:39:25 +0000 (10:39 +0200)
committerGabriel Caruso <carusogabriel34@gmail.com>
Thu, 16 Apr 2020 08:39:25 +0000 (10:39 +0200)
Zend/zend_compile.c

index 9d186b30fdcf8e6c60d4fecbd92de1d30015d0e8..bb9b42fee650f49a1823696e2c14df7779a6b26a 100644 (file)
@@ -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)) {