#21222 [Opn->Bgs]: problem with dirname

From: Date: Fri, 27 Dec 2002 21:27:42 +0000
Subject: #21222 [Opn->Bgs]: problem with dirname
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-28506@lists.php.net to get a copy of this message
ID: 21222 Updated by: rasmus@php.net Reported By: Beater@orgalan.de -Status: Open +Status: Bogus Bug Type: Directory function related Operating System: Win2k PHP Version: 4.3.0 New Comment: Your expectation is simply wrong. dirname() is documented to return the directory component of a pathname you feed it. You fed it /test.php and it gave you back / (or the Windows equivalent thereof) as expected.` Previous Comments: ------------------------------------------------------------------------ [2002-12-27 15:24:46] Beater@orgalan.de Hi there, <?php echo $_SERVER['REQUEST_URI'] . '<br>'; echo '"' . dirname($_SERVER['REQUEST_URI']) . '"'; ?> produces following output... /test.php "\" Instead of the output above, i expected /test.php "" Can someone confirm this? Daniel ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=21222&edit=1

« previous php.bugs (#28506) next »