1
0
mirror of https://github.com/php/php-src.git synced 2026-04-11 18:13:00 +02:00

Fixed asseration fail

This commit is contained in:
Xinchen Hui
2014-02-25 18:22:54 +08:00
parent f298ade89a
commit 346d52c2c4

View File

@@ -565,7 +565,7 @@ found:
/* To check: can't *variable_ptr be some system variable like error_zval here? */
ZVAL_COPY_VALUE(Z_REFVAL_P(variable_ptr), value);
if (Z_REFCOUNT_P(value) > 0) {
if (Z_REFCOUNTED_P(value) && Z_REFCOUNT_P(value) > 0) {
zval_copy_ctor(Z_REFVAL_P(variable_ptr));
}
zval_dtor(&garbage);