From: Lars Strojny Date: Sun, 14 Dec 2008 16:27:30 +0000 (+0000) Subject: MFB: If a wrapper could not be found it is either a typo or a configuration issue... X-Git-Tag: php-5.4.0alpha1~191^2~4808 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7611a5d9849e8d1ca0c7019c546250b0360997c8;p=php 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] (?) --- 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;