From: danielc at analysisandsolutions dot com
Operating system:
PHP version: 5.3CVS-2008-05-26 (snap)
PHP Bug Type: Class/Object related
Bug description: __callStatic $name case sensitivity
Description:
------------
The value of $name produced by __callStatic() is lower cased but the $name
produced by the regular __call() is unchanged.
Please adjust __callStatic() so it doesn't change the case of $name.
Reproduce code:
---------------
class MethodTest {
public static function __callStatic($name, $arguments) {
echo "Calling static method '$name' "
. implode(', ', $arguments). "\n";
}
}
MethodTest::runTest('in static context');
Expected result:
----------------
Calling static method 'runTest' in static context
Actual result:
--------------
Calling static method 'runtest' in static context
--
Edit bug report at http://bugs.php.net/?id=45089&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=45089&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=45089&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=45089&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=45089&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=45089&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=45089&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=45089&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=45089&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=45089&r=support
Expected behavior: http://bugs.php.net/fix.php?id=45089&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=45089&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=45089&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=45089&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45089&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=45089&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=45089&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=45089&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=45089&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=45089&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=45089&r=mysqlcfg