mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
cleanup
This commit is contained in:
parent
717b5661e7
commit
0427ae08fb
9 changed files with 253 additions and 229 deletions
|
@ -270,7 +270,11 @@ static void _default_exception_get_entry(zval *object, char *name, int name_len,
|
|||
|
||||
value = zend_read_property(default_exception_ce, object, name, name_len, 0 TSRMLS_CC);
|
||||
|
||||
ZVAL_DUP_DEREF(return_value, value);
|
||||
if (UNEXPECTED(Z_ISREF_P(return_value))) {
|
||||
ZVAL_DUP(return_value, Z_REFVAL_P(value));
|
||||
} else {
|
||||
ZVAL_COPY(return_value, value);
|
||||
}
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue