PHP 4.0 Bug #10257: value function_name is changed

From: Date: Tue, 10 Apr 2001 13:34:23 +0000
Subject: PHP 4.0 Bug #10257: value function_name is changed
Groups: php.dev 
Request: Send a blank email to php-dev+get-51276@lists.php.net to get a copy of this message
From: dwagner@innnet.de Operating system: doesn\'t matter PHP version: 4.0.4pl1 PHP Bug Type: *Function Specific Bug description: value function_name is changed 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 ;-( -- Edit Bug report at: http://bugs.php.net/?id=10257&edit=1

« previous php.dev (#51276) next »