dmitry          Wed Jul 11 14:33:30 2007 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/main/streams       streams.c 
  Log:
  Fixed wrong warning
  
  
http://cvs.php.net/viewvc.cgi/php-src/main/streams/streams.c?r1=1.82.2.6.2.15&r2=1.82.2.6.2.16&diff_format=u
Index: php-src/main/streams/streams.c
diff -u php-src/main/streams/streams.c:1.82.2.6.2.15 
php-src/main/streams/streams.c:1.82.2.6.2.16
--- php-src/main/streams/streams.c:1.82.2.6.2.15        Tue Jul 10 11:57:34 2007
+++ php-src/main/streams/streams.c      Wed Jul 11 14:33:30 2007
@@ -19,7 +19,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: streams.c,v 1.82.2.6.2.15 2007/07/10 11:57:34 dmitry Exp $ */
+/* $Id: streams.c,v 1.82.2.6.2.16 2007/07/11 14:33:30 dmitry Exp $ */
 
 #define _GNU_SOURCE
 #include "php.h"
@@ -1557,7 +1557,7 @@
 #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);

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to