From e21de85b9ffe7b9515930c8f3dd25932458adb4c Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Sun, 29 Dec 2024 14:46:31 +0100 Subject: [PATCH] Remove pointless conversion from UNDEF to NULL --- ext/simplexml/simplexml.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ext/simplexml/simplexml.c b/ext/simplexml/simplexml.c index a00b152f9c0..7f801f2fdd6 100644 --- a/ext/simplexml/simplexml.c +++ b/ext/simplexml/simplexml.c @@ -268,7 +268,7 @@ long_dim: } } - ZVAL_UNDEF(rv); + ZVAL_NULL(rv); if (node) { if (attribs) { @@ -338,10 +338,6 @@ long_dim: zval_ptr_dtor_str(&tmp_zv); } - if (Z_ISUNDEF_P(rv)) { - ZVAL_NULL(rv); - } - return rv; } /* }}} */