Bug #10257 Updated: value function_name is changed

From: Date: Sun, 29 Apr 2001 09:45:52 +0000
Subject: Bug #10257 Updated: value function_name is changed
Groups: php.dev 
Request: Send a blank email to php-dev+get-52854@lists.php.net to get a copy of this message
ID: 10257 Updated by: jmoore Reported By: dwagner@innnet.de Old-Status: Open Status: Analyzed Old-Bug Type: *Function Specific Bug Type: Scripting Engine problem PHP Version: 4.0.4pl1 Assigned To: Comments: This is a script engine issue.. another shallow copy problem, although in a way I havnt seen it before. - James Previous Comments: --------------------------------------------------------------------------- [2001-04-10 09:34:23] dwagner@innnet.de when you call the function call_user_func_array, the value of the first parameter is changed hardcore to lowercase so every reference to this value is changed too. e.g. $String = "TEstFunction"; $Function= $String; call_user_func_array($Function, array("a","b")); echo $String." ".$Function; will echo: testfunction testfunction this is really ugly if you use the string afterwards for file-issues or variable-issues where the spelling does matter ;-( --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=10257&edit=2

« previous php.dev (#52854) next »