Fair enough, I'll revert the patch. We are still left with a problem of pathes 
on windows not using / consistently however.

Ilia

On November 2, 2002 01:11 pm, Andi Gutmans wrote:
> I know but in the fopen wrappers I normalize paths to the default slash. I
> think all of PHP should behave in the same way.
> Andi
>
> At 09:11 AM 11/1/2002 -0500, Ilia A. wrote:
> >Windows can interpret / as well as \, makes no difference to it. In fact
> > when we resolve paths on Windows, we already use / and not \.
> >
> >Ilia
> >
> >On November 1, 2002 03:01 am, Andi Gutmans wrote:
> > > 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 EDT
> > > >
> > > >   Modified files:
> > > >     /php4/ext/standard  string.c
> > > >   Log:
> > > >   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
> >
> >--
> >PHP CVS Mailing List (http://www.php.net/)
> >To unsubscribe, visit: http://www.php.net/unsub.php


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

Reply via email to