Class Baz contains 1 abstract methods and must therefore be declared abstract (Baz::run)

From: Date: Thu, 26 Feb 2004 06:08:35 +0000
Subject: Class Baz contains 1 abstract methods and must therefore be declared abstract (Baz::run)
Groups: php.internals 
Request: Send a blank email to internals+get-8147@lists.php.net to get a copy of this message
Fails: "Fatal error: Class Baz contains 1 abstract methods and must therefore be declared abstract (Baz::run)" (expected behaviour): <?php class Baz { abstract function run(); } ?> Works (no error message, is instantiable): <?php class Bar { } class Foo extends Bar { abstract function run(); } ?> Is this correct? Why would this differ for inherited classes? And why are these checks performed at runtime? - Timm

« previous php.internals (#8147) next »