Re: cvs: php4 /ext/standard string.c
| From: | Andi Gutmans | Date: | Fri, 01 Nov 2002 08:01:06 +0000 |
| Subject: | Re: cvs: php4 /ext/standard string.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-15696@lists.php.net to get a copy of this message | ||
I'm not sure this is the right thing to do. UNIX and Windows are diffferent and that's what DEFAULT_SLASH is for.
Andi
At 12:53 AM 11/1/2002 +0000, Ilia Alshanetsky wrote:
iliaa Thu Oct 31 19:53:28 2002 EDTModified files:/php4/ext/standard string.cLog: Fixed bug #18710. dirname() now returns consistent output when dealing with \ directory separators on Windows. Index: php4/ext/standard/string.c diff -u php4/ext/standard/string.c:1.330 php4/ext/standard/string.c:1.331--- php4/ext/standard/string.c:1.330 Wed Oct 30 06:42:51 2002+++ php4/ext/standard/string.c Thu Oct 31 19:53:27 2002 @@ -18,7 +18,7 @@+----------------------------------------------------------------------+*/ -/* $Id: string.c,v 1.330 2002/10/30 11:42:51 moriyoshi Exp $ */ +/* $Id: string.c,v 1.331 2002/11/01 00:53:27 iliaa Exp $ */ /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */ @@ -1148,7 +1148,7 @@} if (end < path) { /* The path only contained slashes */ - path[0] = DEFAULT_SLASH; + path[0] = '/'; path[1] = '\0'; return; }@@ -1169,7 +1169,7 @@end--; } if (end < path) { - path[0] = DEFAULT_SLASH; + path[0] = '/'; path[1] = '\0'; return; }-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php