com php-src: fix another mistake: Zend/zend_exceptions.c

From: Date: Wed, 12 Oct 2016 21:08:19 +0000
Subject: com php-src: fix another mistake: Zend/zend_exceptions.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-94981@lists.php.net to get a copy of this message
Commit: bec0121733cc5777c4d3fde8e9ff56fe68c039d3 Author: Anatol Belski <ab@php.net> Wed, 12 Oct 2016 23:07:37 +0200 Parents: 1119cdae42dfabb2e6801a98bc6997854b832029 Branches: PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=bec0121733cc5777c4d3fde8e9ff56fe68c039d3 Log: fix another mistake Changed paths: M Zend/zend_exceptions.c Diff: diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c index f3143b9..6e4962d 100644 --- a/Zend/zend_exceptions.c +++ b/Zend/zend_exceptions.c @@ -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)

« previous php.cvs (#94981) next »