1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Remove useless write to LIBXML(stream_context)

The value will always be overwritten.
This commit is contained in:
Niels Dossche
2024-02-24 23:47:50 +01:00
parent 30621b2ab4
commit a74da53fc4

View File

@@ -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);
}