From c49b08fe9a72e4cae474d7e3bb0200f3632abbf4 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 8 Nov 2007 13:29:38 +0000 Subject: [PATCH] Fixed bug #43216 (stream_is_local() returns false on "file://") --- ext/standard/streamsfuncs.c | 2 +- ext/standard/tests/file/bug43216.phpt | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100755 ext/standard/tests/file/bug43216.phpt diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c index 749f327208..7f0effed92 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -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) { diff --git a/ext/standard/tests/file/bug43216.phpt b/ext/standard/tests/file/bug43216.phpt new file mode 100755 index 0000000000..111f160881 --- /dev/null +++ b/ext/standard/tests/file/bug43216.phpt @@ -0,0 +1,8 @@ +--TEST-- +Bug #43216 (stream_is_local() returns false on file://) +--FILE-- + +--EXPECT-- +bool(true) -- 2.50.1