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

From: Date: Mon, 09 Dec 2002 05:56:54 +0000
Subject: #20895 [Opn->Bgs]: dirname() behaviour changed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-27130@lists.php.net to get a copy of this message
ID: 20895 Updated by: iliaa@php.net Reported By: gambier.olivier@free.fr -Status: Open +Status: Bogus Bug Type: Filesystem function related Operating System: Win 2000Pro SP3 PHP Version: 4.3.0RC2 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [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 (#27130) next »