ID:          45089
 Updated by:  [EMAIL PROTECTED]
 Reported By: danielc at analysisandsolutions dot com
-Status:      Assigned
+Status:      Closed
 Bug Type:    Class/Object related
 PHP Version: 5.3CVS-2008-05-26 (snap)
 Assigned To: pollita
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.

Fixed in 5_3 and HEAD.


Previous Comments:
------------------------------------------------------------------------

[2008-05-26 19:23:12] [EMAIL PROTECTED]

Here's a patch:
http://felipe.ath.cx/diff/callstatic.diff

Solve the callback issue too.

I also added two tests in:
http://felipe.ath.cx/diff/tests/


------------------------------------------------------------------------

[2008-05-26 00:41:36] danielc at analysisandsolutions dot com

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 this bug report at http://bugs.php.net/?id=45089&edit=1

Reply via email to