Re: Linux / Unix difference

From: Date: Thu, 23 Jul 2009 15:49:22 +0000
Subject: Re: Linux / Unix difference
References: 1 2 3 4  Groups: php.qa 
Request: Send a blank email to php-qa+get-65245@lists.php.net to get a copy of this message
On Thu, 23 Jul 2009, Patrick ALLAERT wrote: > 2009/7/23 zoe <zoe.slattery@googlemail.com>: > > Derick Rethans wrote: > >> > >> On Thu, 23 Jul 2009, Patrick ALLAERT wrote: > >>> > >>> I just wanted to drop a note about an annoying difference between > >>> Linux and Unix (at least some Solaris and HP-UX) regarding > >>> pathname resolution: > >>> > >>> I will fix them, > >> > >> They should test this, and verify that the behavior (from a PHP > >> user point of view) is exactly the same. > > > > Agreed. The test cases should not be changed, should this be raised > > as a bug? I'm not sure where it would be best fixed, I assume PHP is > > just passing platform dependent behaviour back to the user? > > This is the kind of thing which is of course highly debatable. > > In my point of view, PHP shouldn't unify system calls (lstat*) > behaviours. Because as a *user*, I expect that a PHP fopen() and co. > would react the same way as my OS does while opening a file. > The same is true with the fact that filenames are case sensitive under > Linux and not under Windows and it is not the role of PHP to unify > that. No no... We've gone to great length to make things behave the same on every platform. Not only between Unices, but also with the Windows port. It is absolutely adamant that PHP works the same on every platform and is *not* OS dependent in how things work. regards, Derick -- http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org twitter: @derickr

« previous php.qa (#65245) next »