Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5672 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32387 invoked by uid 1010); 23 Nov 2003 00:40:31 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 32363 invoked by uid 1007); 23 Nov 2003 00:40:31 -0000 Message-ID: <20031123004031.32362.qmail@pb1.pair.com> To: internals@lists.php.net Date: Sat, 22 Nov 2003 22:40:30 -0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; pt-BR; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-us, en MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060003080607080602080609" X-Posted-By: 200.196.104.198 Subject: [PATCH] Streams "file://" bug From: cunha17@uol.com.br (Cristiano Duarte) --------------060003080607080602080609 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 --------------060003080607080602080609 Content-Type: text/plain; name="streams.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="streams.patch" ? 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; } --------------060003080607080602080609--