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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or 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

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 15:01:30 2024 UTC