summaryrefslogtreecommitdiff
path: root/Zend/zend_exceptions.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2016-07-12 11:52:21 +0800
committerXinchen Hui <laruence@gmail.com>2016-07-12 11:52:21 +0800
commit0478e431cfa24476f6eed1cfbf30250c549aa59d (patch)
treecf68417baa8d99155aafcca09a755041ac05c67a /Zend/zend_exceptions.c
parent1ba20e311e4f9046c192f9cc23cdaaf04ec5fa70 (diff)
parent42902919bc0f97977e116415c9968dc6b23b12d2 (diff)
downloadphp-git-0478e431cfa24476f6eed1cfbf30250c549aa59d.tar.gz
Merge branch 'PHP-7.0'
* PHP-7.0: Fixed bug #72581 (previous property undefined in Exception after deserialization) Conflicts: Zend/zend_exceptions.c
Diffstat (limited to 'Zend/zend_exceptions.c')
-rw-r--r--Zend/zend_exceptions.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c
index f73dde1a97..7fd55a4fc8 100644
--- a/Zend/zend_exceptions.c
+++ b/Zend/zend_exceptions.c
@@ -303,9 +303,8 @@ ZEND_METHOD(exception, __construct)
/* {{{ proto Exception::__wakeup()
Exception unserialize checks */
#define CHECK_EXC_TYPE(id, type) \
- ZVAL_UNDEF(&value); \
pvalue = zend_read_property_ex(i_get_exception_base(object), (object), CG(known_strings)[id], 1, &value); \
- if(Z_TYPE_P(pvalue) != IS_UNDEF && Z_TYPE_P(pvalue) != type) { \
+ if (Z_TYPE_P(pvalue) != IS_NULL && Z_TYPE_P(pvalue) != type) { \
zval tmp; \
ZVAL_STR_COPY(&tmp, CG(known_strings)[id]); \
Z_OBJ_HANDLER_P(object, unset_property)(object, &tmp, NULL); \