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

From: Date: Thu, 13 Oct 2016 23:56:31 +0000
Subject: com php-src: fix another mistake: Zend/zend_exceptions.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-95050@lists.php.net to get a copy of this message
Commit: b4ddf4e575f19c08447808f513e5d53df671ce71 Author: Anatol Belski <ab@php.net> Wed, 12 Oct 2016 23:07:37 +0200 Parents: 01a280a9c7a797620a255f16a6a5b037f7c53bdb Branches: PHP-7.1 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b4ddf4e575f19c08447808f513e5d53df671ce71 Log: fix another mistake (cherry picked from commit bec0121733cc5777c4d3fde8e9ff56fe68c039d3) 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 (#95050) next »