From ea5521c68cbfc44c7ebc97ebbad80c2bfd8f3637 Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Mon, 11 Dec 2023 20:07:54 +0100 Subject: [PATCH] Remove always-false condition from stream_is_local() php_stream_from_zval returns if the value is NULL. --- ext/standard/streamsfuncs.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c index e8711f58920..7dea31294bd 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -1636,9 +1636,6 @@ PHP_FUNCTION(stream_is_local) if (Z_TYPE_P(zstream) == IS_RESOURCE) { php_stream_from_zval(stream, zstream); - if (stream == NULL) { - RETURN_FALSE; - } wrapper = stream->wrapper; } else { if (!try_convert_to_string(zstream)) {