dirname() bug, advice needed

From: Date: Wed, 21 Mar 2001 09:59:42 +0000
Subject: dirname() bug, advice needed
Groups: php.dev php.qa 
Request: Send a blank email to php-dev+get-49596@lists.php.net to get a copy of this message
I would expect different results from dirname() on win32 and linux, I am pretty stuck with it, perhaps there is a RFC for this? should this function act differently on win32+linux what would make code unportable but working correctly? dirname() seems to be buggy, at least on win32, these are the expected values from the test file: --EXPECT-- dirname(/foo/) == / dirname(/foo) == / dirname(/foo/bar) == /foo dirname(d:\foo\bar.inc) == . dirname(/) == / dirname(.../foo) == ... dirname(./foo) == . dirname(foobar///) == . dirname(c:\foo) == . what I would expect... dirname(/foo/) == /foo dirname(/foo) == / dirname(/foo/bar) == /foo dirname(d:\foo\bar.inc) == d:\foo dirname(/) == / dirname(.../foo) == ????? (dunno linux+win32) dirname(./foo) == . (win32?) dirname(foobar///) == . (???) dirname(c:\foo) == ???? I really do not know what to do with this issue. andré -- · André Langhorst t: +49 331 5811560 · · andre@php.net m: +49 173 9558736 · * PHP Quality Assurance http://qa.php.net *

« previous php.dev (#49596) next »