From: [EMAIL PROTECTED]
Operating system: Linux Mandrake 8.0
PHP version: 4.1.1
PHP Bug Type: Filesystem function related
Bug description: basename bug
This code
$a = "/74.html";
$url = $a;
echo $url, "<BR>";
echo basename($url, ".html"), "<BR>";
echo "$a<BR>$url<BR>";
corrupts $a and $url both. Compare it with:
$a = "/74.html";
$url = $a;
echo $url, "<BR>";
echo basename("$url", ".html"), "<BR>";
echo "$a<BR>$url<BR>";
--
Edit bug report at: http://bugs.php.net/?id=15234&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]