note 17927 deleted from function.dirname by sniper

From: Date: Mon, 09 Dec 2002 06:05:11 +0000
Subject: note 17927 deleted from function.dirname by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-40560@lists.php.net to get a copy of this message
One should note that the behaviour of dirname changed somewhere in php-4.0.3 old: dirname("/index.html") == "" new: dirname("/index.html") == "/" one can get the old behaviour for legacy php applications with the following function: _dirname($input) { $ret = dirname($input); return ("/" == $ret)?"":$ret; }

« previous php.notes (#40560) next »