diff options
author | Lars Strojny <lstrojny@php.net> | 2008-12-14 16:25:37 +0000 |
---|---|---|
committer | Lars Strojny <lstrojny@php.net> | 2008-12-14 16:25:37 +0000 |
commit | 29f49d2ded89fa562eb863eec23f4ce21c1331b1 (patch) | |
tree | 9c438b8030f979b853f995a0d3ddf44c3d65e7b5 /main/streams/streams.c | |
parent | ea7c47c97d17cae5492e7fb81161e590ed3d7311 (diff) | |
download | php-git-29f49d2ded89fa562eb863eec23f4ce21c1331b1.tar.gz |
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.
Diffstat (limited to 'main/streams/streams.c')
-rwxr-xr-x | main/streams/streams.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/main/streams/streams.c b/main/streams/streams.c index 704e2ccd20..dd095bba28 100755 --- a/main/streams/streams.c +++ b/main/streams/streams.c @@ -1548,8 +1548,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; @@ -1597,15 +1597,15 @@ PHPAPI php_stream_wrapper *php_stream_locate_url_wrapper(const char *path, char if (options & STREAM_LOCATE_WRAPPERS_ONLY) { return NULL; } - + if (FG(stream_wrappers)) { - /* The file:// wrapper may have been disabled/overridden */ + /* The file:// wrapper may have been disabled/overridden */ if (wrapperpp) { /* It was found so go ahead and provide it */ return *wrapperpp; } - + /* Check again, the original check might have not known the protocol name */ if (zend_hash_find(wrapper_hash, "file", sizeof("file"), (void**)&wrapperpp) == SUCCESS) { return *wrapperpp; |