#24678 [Opn->Bgs]: BASENAME function - SUFFIX is case-sensitive
| From: | derick@php.net | Date: | Wed, 16 Jul 2003 14:26:36 +0000 |
| Subject: | #24678 [Opn->Bgs]: BASENAME function - SUFFIX is case-sensitive | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-44130@lists.php.net to get a copy of this message | ||
ID: 24678
Updated by: derick@php.net
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 http://bugs.php.net/?id=24678&edit=1