Inherited and unimplemented method of a class

From: Date: Tue, 29 Apr 2008 14:19:55 +0000
Subject: Inherited and unimplemented method of a class
Groups: php.general 
Request: Send a blank email to php-general+get-273698@lists.php.net to get a copy of this message
Hello folks. An inherited and unimplemented method of a class in PHP-5.2.5 gets called twice: class Foo { public function foo() { echo get_class($this);//or __CLASS__; } } class Bar extends Foo { } $f = new Bar; $f->foo(); Shouldn't it be only once? If I'm doing something wrong, how would I do it right? If it's a bug, did it get fixed as of 5.2.6RC5 ? Thanks.

« previous php.general (#273698) next »