#50628 [Opn->Bgs]: Trailing slash in dirname

From: Date: Sat, 02 Jan 2010 16:37:20 +0000
Subject: #50628 [Opn->Bgs]: Trailing slash in dirname
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-146282@lists.php.net to get a copy of this message
ID: 50628 Updated by: jani@php.net Reported By: ninive at gmx dot at -Status: Open +Status: Bogus Bug Type: Directory function related Operating System: Linux 2.6.31 PHP Version: 5.2.12 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 [jani@bfit ~]$ dirname /hugo/ / [jani@bfit ~]$ dirname /hugo / Previous Comments: ------------------------------------------------------------------------ [2010-01-01 19:11:29] ninive at gmx dot at Description: ------------ dirname("/hugo/") -> "/" Reproduce code: --------------- echo dirname("/hugo/") Expected result: ---------------- "/hugo" Actual result: -------------- "/" ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50628&edit=1

« previous php.bugs (#146282) next »