mirror of
https://github.com/php/php-src.git
synced 2026-03-30 20:22:36 +02:00
Fixed bug #43216 (stream_is_local() returns false on "file://")
This commit is contained in:
@@ -1666,7 +1666,7 @@ PHP_FUNCTION(stream_is_local)
|
||||
wrapper = stream->wrapper;
|
||||
} else {
|
||||
convert_to_string_ex(&zstream);
|
||||
wrapper = php_stream_locate_url_wrapper(Z_STRVAL_P(zstream), NULL, STREAM_LOCATE_WRAPPERS_ONLY TSRMLS_CC);
|
||||
wrapper = php_stream_locate_url_wrapper(Z_STRVAL_P(zstream), NULL, 0 TSRMLS_CC);
|
||||
}
|
||||
|
||||
if(!wrapper) {
|
||||
|
||||
8
ext/standard/tests/file/bug43216.phpt
Executable file
8
ext/standard/tests/file/bug43216.phpt
Executable file
@@ -0,0 +1,8 @@
|
||||
--TEST--
|
||||
Bug #43216 (stream_is_local() returns false on file://)
|
||||
--FILE--
|
||||
<?
|
||||
var_dump(stream_is_local("file://"));
|
||||
?>
|
||||
--EXPECT--
|
||||
bool(true)
|
||||
Reference in New Issue
Block a user