* $name in __callStatic() now case sensitive. Fixed by bug 45089.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@260894 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Daniel Convissor 2008-06-07 19:41:23 +00:00
parent 22cd91ea87
commit a5fc026ab8

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.29 $ -->
<!-- $Revision: 1.30 $ -->
<sect1 xml:id="language.oop5.overloading" xmlns="http://docbook.org/ns/docbook">
<title>Overloading</title>
@ -277,7 +277,7 @@ class MethodTest {
/** As of PHP 5.3.0 */
public static function __callStatic($name, $arguments) {
// Note: value of $name is converted to lower case.
// Note: value of $name is case sensitive.
echo "Calling static method '$name' "
. implode(', ', $arguments). "\n";
}
@ -294,7 +294,7 @@ MethodTest::runTest('in static context'); // As of PHP 5.3.0
<screen role="php">
<![CDATA[
Calling object method 'runTest' in object context
Calling static method 'runtest' in static context
Calling static method 'runTest' in static context
]]>
</screen>
</example>