summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2007-07-11 14:32:54 +0000
committerDmitry Stogov <dmitry@php.net>2007-07-11 14:32:54 +0000
commit922f3d5512bf7558c34695318e3e2b6f862cf97a (patch)
treebe49955f97eb039fe0a1f245960ba1d60fe68158
parent3822833c3756bf8e75390d80266a1b598d2e853d (diff)
downloadphp-git-922f3d5512bf7558c34695318e3e2b6f862cf97a.tar.gz
Fixed wrong warning
-rwxr-xr-xmain/streams/streams.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/streams/streams.c b/main/streams/streams.c
index e484b7f9cb..8a0833b125 100755
--- a/main/streams/streams.c
+++ b/main/streams/streams.c
@@ -2113,7 +2113,7 @@ PHPAPI php_stream_wrapper *php_stream_locate_url_wrapper(const char *path, char
#ifdef PHP_WIN32
if (localhost == 0 && path[n+3] != '\0' && path[n+3] != '/' && path[n+4] != ':') {
#else
- if (localhost == 0 && path[n+3] != '/') {
+ if (localhost == 0 && path[n+3] != '\0' && path[n+3] != '/') {
#endif
if (options & REPORT_ERRORS) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "remote host file access not supported, %s", path);