php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15234 basename bug
Submitted: 2002-01-26 11:16 UTC Modified: 2002-02-09 17:46 UTC
Votes:2
Avg. Score:4.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:1 (50.0%)
From: Ded dot Muzdie at ksu dot ru Assigned:
Status: Closed Package: Filesystem function related
PHP Version: 4.1.1 OS: Linux Mandrake 8.0
Private report: No CVE-ID: None
 [2002-01-26 11:16 UTC] Ded dot Muzdie at ksu dot ru
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>";

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-09 17:46 UTC] torben@php.net
This bug has been fixed in CVS.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Oct 04 19:05:52 2022 UTC