|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-08-01 07:29 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 12:00:01 2025 UTC |
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"