Bug #15234: basename bug

From: Date: Sat, 26 Jan 2002 16:16:37 +0000
Subject: Bug #15234: basename bug
Groups: php.dev 
Request: Send a blank email to php-dev+get-78186@lists.php.net to get a copy of this message
From: Ded.Muzdie@ksu.ru 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

« previous php.dev (#78186) next »