Inherited and unimplemented method of a class

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux