]> granicus.if.org Git - php/commitdiff
fix another mistake
authorAnatol Belski <ab@php.net>
Wed, 12 Oct 2016 21:07:37 +0000 (23:07 +0200)
committerAnatol Belski <ab@php.net>
Thu, 13 Oct 2016 23:56:31 +0000 (01:56 +0200)
(cherry picked from commit bec0121733cc5777c4d3fde8e9ff56fe68c039d3)

Zend/zend_exceptions.c

index f3143b942da9b8116b55e4ff6e2188e2cd7b49a7..6e4962dbf2e7a3f06080b10f5620b2ffc02e6fab 100644 (file)
@@ -306,7 +306,7 @@ ZEND_METHOD(exception, __construct)
 #define CHECK_EXC_TYPE(id, type) \
        pvalue = zend_read_property_ex(i_get_exception_base(object), (object), CG(known_strings)[id], 1, &value); \
        if (Z_TYPE_P(pvalue) != IS_NULL && Z_TYPE_P(pvalue) != type) { \
-               zend_unset_property(i_get_exception_base(object), object, "previous", sizeof("previous")-1); \
+               zend_unset_property(i_get_exception_base(object), object, ZSTR_VAL(CG(known_strings)[id]), ZSTR_LEN(CG(known_strings)[id])); \
        }
 
 ZEND_METHOD(exception, __wakeup)