note 79552 deleted from language.oop5.static by felipe

From: Date: Sat, 15 Dec 2007 16:01:54 +0000
Subject: note 79552 deleted from language.oop5.static by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-133592@lists.php.net to get a copy of this message
Note Submitter: Glen Reason: 5 ---- Hey .. the PHP team are fixing this problem: http://www.php.net/manual/en/language.oop5.late-static-bindings.php Still - I'd like to post this result ... which makes an "abstract static" method pretty useless: <?php abstract class A { abstract static public function func(); public function __construct() { self::func(); } } class B extends A { public function __construct() { parent::__construct(); } static public function func() { echo "YO!"; } } $b = new B(); ?> result... Fatal error: Cannot call abstract method A::func() in /mnt/hgfs/flickaway/html/d/test2.php on line 14

« previous php.notes (#133592) next »