From: funyon at funyon dot com
Operating system: Redhat
PHP version: 4CVS-2003-07-31 (stable)
PHP Bug Type: Filesystem function related
Bug description: Basename is inporperly changing the path var
Description:
------------
it seems that the function basename changes it's second var is getting
stomped on (it is removing the . out of the path)
Reproduce code:
---------------
$arr = array("Fla"=>"someflash.swf");
$name = basename($arr['Fla'],".swf");
$FlashFile = $arr['Fla'];
$width = $arr['FlashWidth'];
$height = $arr['FlashHeight'];
Expected result:
----------------
$name = "someflash"
$FlashFile = "someflash.swf"
Actual result:
--------------
$name = "someflash"
$FlashFile = "someflash swf"
--
Edit bug report at http://bugs.php.net/?id=24898&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24898&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24898&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=24898&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24898&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24898&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24898&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24898&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24898&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24898&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24898&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24898&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24898&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24898&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24898&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24898&r=gnused