Remove always-false condition from stream_is_local()

php_stream_from_zval returns if the value is NULL.
This commit is contained in:
Niels Dossche 2023-12-11 20:07:54 +01:00
parent 54be2656f4
commit ea5521c68c

View file

@ -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)) {