From:             taomyn at hotmail dot com
Operating system: Windows 2000 Server SP4
PHP version:      4.3.2
PHP Bug Type:     Filesystem function related
Bug description:  BASENAME function - SUFFIX is case-sensitive

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 bug report at http://bugs.php.net/?id=24678&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=24678&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=24678&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=24678&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24678&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24678&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24678&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24678&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24678&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24678&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24678&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24678&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24678&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24678&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24678&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24678&r=gnused

Reply via email to