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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
40 + 2 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 05:01:33 2024 UTC