From 7611a5d9849e8d1ca0c7019c546250b0360997c8 Mon Sep 17 00:00:00 2001 From: Lars Strojny Date: Sun, 14 Dec 2008 16:27:30 +0000 Subject: [PATCH] MFB: If a wrapper could not be found it is either a typo or a configuration issue. But in both cases it is critical enough to warn the user. [DOC] (?) --- ext/standard/tests/file/stream_001.phpt | 2 +- main/streams/streams.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/standard/tests/file/stream_001.phpt b/ext/standard/tests/file/stream_001.phpt index af3459c562..fc9448efc3 100644 --- a/ext/standard/tests/file/stream_001.phpt +++ b/ext/standard/tests/file/stream_001.phpt @@ -13,7 +13,7 @@ echo "Done\n"; --EXPECTF-- bool(true) -Notice: fopen(): Unable to find the wrapper "file" - did you forget to enable it when you configured PHP? in %s on line %d +Warning: fopen(): Unable to find the wrapper "file" - did you forget to enable it when you configured PHP? in %s on line %d Warning: fopen(): Plainfiles wrapper disabled in %s on line %d diff --git a/main/streams/streams.c b/main/streams/streams.c index ec054813da..3f4b1c5826 100755 --- a/main/streams/streams.c +++ b/main/streams/streams.c @@ -2104,8 +2104,8 @@ PHPAPI php_stream_wrapper *php_stream_locate_url_wrapper(const char *path, char n = sizeof(wrapper_name) - 1; } PHP_STRLCPY(wrapper_name, protocol, sizeof(wrapper_name), n); - - php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Unable to find the wrapper \"%s\" - did you forget to enable it when you configured PHP?", wrapper_name); + + php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to find the wrapper \"%s\" - did you forget to enable it when you configured PHP?", wrapper_name); wrapperpp = NULL; protocol = NULL; -- 2.50.1