mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Remove always-false condition from stream_is_local()
php_stream_from_zval returns if the value is NULL.
This commit is contained in:
parent
54be2656f4
commit
ea5521c68c
1 changed files with 0 additions and 3 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue