From: Michael Wallner Date: Fri, 15 Jan 2021 12:38:41 +0000 (+0100) Subject: fix PHP-master X-Git-Tag: v2.2.0~10 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=c9082b82cd9275d2ff9027b108ea01ab88e70294;p=m6w6%2Fext-pq fix PHP-master --- diff --git a/src/php_pq_params.c b/src/php_pq_params.c index a3ee6b8..259fbb9 100644 --- a/src/php_pq_params.c +++ b/src/php_pq_params.c @@ -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; }