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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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: Sat Dec 21 18:01:29 2024 UTC