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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user