Hi all,

The current implementation of file:// support under main/streams/strems.c has a little bug.
Maybe it's my gcc 3.2.2 compiler... I don't know...
Anyway, the attached patch fixes it.


Best Regards,

Cristiano Duarte
? php-src/ZendEngine1
Index: php-src/main/streams/streams.c
===================================================================
RCS file: /repository/php-src/main/streams/streams.c,v
retrieving revision 1.39
diff -u -r1.39 streams.c
--- php-src/main/streams/streams.c      3 Nov 2003 14:12:46 -0000       1.39
+++ php-src/main/streams/streams.c      23 Nov 2003 00:31:08 -0000
@@ -1433,9 +1433,9 @@
 #ifdef PHP_WIN32
                        if (*(*path_for_open + 1) != ':')
 #endif
-                               *path_for_open--;
+                               --*path_for_open;
                }
-               
+
                /* fall back on regular file access */
                return (options & STREAM_LOCATE_WRAPPERS_ONLY) ? NULL : 
&php_plain_files_wrapper;
        }

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to