ID: 24678
Updated by: [email]derickphp.net[/email]
Reported By: taomyn at hotmail dot com
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: Windows 2000 Server SP4
PHP Version: 4.3.2
New Comment:

This is as it should be, not a bug.


Previous Comments:
------------------------------------------------------------------------

[2003-07-16 09:23:10] taomyn at hotmail dot com

Description:
------------
If you use the "suffix" parameter if BASENAME, the string is treated as
case-sensitive, for example:

$fname = "C:\WINDOWS\AFILE.TXT";
print basename($fname,".TXT");

returns "AFILE"

but

$fname = "C:\WINDOWS\AFILE.TXT";
print basename($fname,".txt");

returns "AFILE.TXT"


Reproduce code:
---------------
$fname = "C:\WINDOWS\AFILE.TXT";
print basename($fname,".txt");


Expected result:
----------------
AFILE

Actual result:
--------------
AFILE.TXT


------------------------------------------------------------------------


--
Edit this bug report at [url]http://bugs.php.net/?id=24678&edit=1[/url]