From a74da53fc4b0b075cf762cb37d71b1e22c663c64 Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Sat, 24 Feb 2024 23:47:50 +0100 Subject: [PATCH] Remove useless write to LIBXML(stream_context) The value will always be overwritten. --- ext/libxml/libxml.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ext/libxml/libxml.c b/ext/libxml/libxml.c index ee5b2fa433c..723779eebd5 100644 --- a/ext/libxml/libxml.c +++ b/ext/libxml/libxml.c @@ -1054,7 +1054,6 @@ PHP_FUNCTION(libxml_set_streams_context) if (!Z_ISUNDEF(LIBXML(stream_context))) { zval_ptr_dtor(&LIBXML(stream_context)); - ZVAL_UNDEF(&LIBXML(stream_context)); } ZVAL_COPY(&LIBXML(stream_context), arg); }