mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-29 03:45:43 +00:00
Fixed return value handling in ZEND_ASSIGN_OBJ
This commit is contained in:
1 parent
08da14adac
commit
855a030b7b
1 file changed
+1
-1
+1
-1
@@ -830,7 +830,7 @@ static inline void zend_assign_to_object(zval *retval, zval *object_ptr, zval *p
|
||||
Z_OBJ_HT_P(object)->write_dimension(object, property_name, value TSRMLS_CC);
|
||||
}
|
||||
|
||||
if (retval && EG(exception) != NULL) {
|
||||
if (retval && !EG(exception)) {
|
||||
ZVAL_COPY(retval, value);
|
||||
}
|
||||
zval_ptr_dtor(value);
|
||||
|
||||
Reference in new issue
Block a user