mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
Use ADDREF instead of DUP, it must be enough.
This commit is contained in:
parent
ab539e177e
commit
0e270661a4
@ -221,7 +221,7 @@ ZEND_API void zval_add_ref_unref(zval *p)
|
||||
{
|
||||
if (Z_REFCOUNTED_P(p)) {
|
||||
if (Z_ISREF_P(p)) {
|
||||
ZVAL_DUP(p, Z_REFVAL_P(p));
|
||||
ZVAL_COPY(p, Z_REFVAL_P(p));
|
||||
} else {
|
||||
Z_ADDREF_P(p);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user