mirror of
https://github.com/php/php-src.git
synced 2026-03-24 08:12:21 +01:00
Remove always-false condition from stream_is_local()
php_stream_from_zval returns if the value is NULL.
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user