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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: Ded dot Muzdie at ksu dot ru
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Mon Dec 09 19:01:27 2024 UTC