Skip to content

Commit ea5521c

Browse files
committed
Remove always-false condition from stream_is_local()
php_stream_from_zval returns if the value is NULL.
1 parent 54be265 commit ea5521c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

ext/standard/streamsfuncs.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1636,9 +1636,6 @@ PHP_FUNCTION(stream_is_local)
16361636

16371637
if (Z_TYPE_P(zstream) == IS_RESOURCE) {
16381638
php_stream_from_zval(stream, zstream);
1639-
if (stream == NULL) {
1640-
RETURN_FALSE;
1641-
}
16421639
wrapper = stream->wrapper;
16431640
} else {
16441641
if (!try_convert_to_string(zstream)) {

0 commit comments

Comments
 (0)