#20895 [Bgs->Ver]: dirname() behaviour changed

From: Date: Wed, 11 Dec 2002 02:05:56 +0000
Subject: #20895 [Bgs->Ver]: dirname() behaviour changed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-27302@lists.php.net to get a copy of this message
ID: 20895 Updated by: philip@php.net Reported By: gambier.olivier@free.fr -Status: Bogus +Status: Verified Bug Type: Filesystem function related Operating System: Win 2000Pro SP3 PHP Version: 4.3.0RC2 New Comment: A couple people just tested this and get the same results as the bug report with 4.3.0RC2, please explain why this behavior changed. Previous Comments: ------------------------------------------------------------------------ [2002-12-08 23:56:53] iliaa@php.net Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php ------------------------------------------------------------------------ [2002-12-08 23:35:37] gambier.olivier@free.fr Hello. Up to 4.2.3: dirname("c:/"); // or dirname("c:"); // both returned '.' in 4.3.0 RC2, we got now: dirname("c:/"); // gives you c:\ dirname("c:"); // gives you c: (i) I'm not sure that such path shall be used with dirname(). But after all, why not? And in fact I used it. (ii) What's the reason for that behaviour change? (iii) As some of my classes are now broken, will this new behaviour become the rule for the future? Apache independent. Standarts php.ini (recommended) and httpd.conf Mozilla 1.2 Thanks. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=20895&edit=1

« previous php.bugs (#27302) next »