From 4f2744656cad572fe8ebe91cb0dc13b03069e569 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 26 Jun 2026 09:34:58 +0200 Subject: simplify previous --- rpminfo.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'rpminfo.c') diff --git a/rpminfo.c b/rpminfo.c index c90be1e..1183ff5 100644 --- a/rpminfo.c +++ b/rpminfo.c @@ -233,9 +233,7 @@ PHP_FUNCTION(rpminfo) RETURN_THROWS(); } if (error) { - ZVAL_DEREF(error); - zval_ptr_dtor_nogc(error); - ZVAL_NULL(error); + ZEND_TRY_ASSIGN_REF_NULL(error); } if (php_check_open_basedir(path)) { RETURN_NULL(); @@ -268,7 +266,7 @@ PHP_FUNCTION(rpminfo) } if (e_len) { if (error) { - ZVAL_STRINGL(error, e_msg, e_len); + ZEND_TRY_ASSIGN_REF_STRINGL(error, e_msg, e_len); } else { php_error_docref(NULL, E_WARNING, "%s", e_msg); } -- cgit