note 83978 added to language.oop5.late-static-bindings
| From: | AndreaGiammarchi at osu1 dot php dot net | Date: | Sat, 21 Jun 2008 20:06:09 +0000 |
| Subject: | note 83978 added to language.oop5.late-static-bindings | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-140644@lists.php.net to get a copy of this message | ||
About static parameters, these work as expected.
<?php
class A {
protected static $__CLASS__ = __CLASS__;
public static function constructor(){
return static::$__CLASS__;
}
}
class B extends A {
protected static $__CLASS__ = __CLASS__;
}
echo B::constructor(); // B
?>
----
Server IP: 92.48.74.199
Probable Submitter: 87.74.27.51
----
Manual Page -- http://www.php.net/manual/en/language.oop5.late-static-bindings.php
Edit -- https://master.php.net/note/edit/83978
Del: integrated -- https://master.php.net/note/delete/83978/integrated
Del: useless -- https://master.php.net/note/delete/83978/useless
Del: bad code -- https://master.php.net/note/delete/83978/bad+code
Del: spam -- https://master.php.net/note/delete/83978/spam
Del: non-english -- https://master.php.net/note/delete/83978/non-english
Del: in docs -- https://master.php.net/note/delete/83978/in+docs
Del: other reasons-- https://master.php.net/note/delete/83978
Reject -- https://master.php.net/note/reject/83978
Search -- https://master.php.net/manage/user-notes.php