dirname bug

From: Date: Mon, 18 Sep 2000 09:18:53 +0000
Subject: dirname bug
Groups: php.general 
Request: Send a blank email to php-general+get-17109@lists.php.net to get a copy of this message
Using PHP 4.0.1pl2 I've found a strange behaviour of function dirname: $fileName = "/dir/"; print "dirname:".dirname($fileName); gives: dirname: while if $fileName= "/dir/foo.bar" gives: dirname: /dir while if $fileName="/dir" produces nothing in the output, again: dirname: Strange, uh? Maurizio

« previous php.general (#17109) next »