mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
* $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:
parent
22cd91ea87
commit
a5fc026ab8
1 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue