Use ADDREF instead of DUP, it must be enough.

This commit is contained in:
Dmitry Stogov 2014-10-20 13:55:55 +04:00
parent ab539e177e
commit 0e270661a4

View File

@ -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);
}