fix PHP-master
authorMichael Wallner <mike@php.net>
Fri, 15 Jan 2021 12:38:41 +0000 (13:38 +0100)
committerMichael Wallner <mike@php.net>
Fri, 15 Jan 2021 12:38:41 +0000 (13:38 +0100)
src/php_pq_params.c

index a3ee6b880a401051008b375f1e93c20906674503..259fbb9a13b1c4b6e3c2d243e5106f39c1e9763d 100644 (file)
@@ -307,7 +307,8 @@ static int apply_to_params(zval *zp, void *arg_ptr)
 {
        struct apply_to_params_arg *arg = arg_ptr;
 
-       SEPARATE_ZVAL_IF_NOT_REF(zp);
+       ZVAL_DEREF(zp);
+       SEPARATE_ZVAL(zp);
        php_pq_params_set_param(arg->params, arg->index++, zp);
        return ZEND_HASH_APPLY_KEEP;
 }