Inherited and unimplemented method of a class



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.
.



Relevant Pages

  • Re: Downcasting from generic bases
    ... private static class Bar extends Foo{ ... private static void Baz(Foo<?> foo) { ... protected Integer doSomething; ... Yes, I know it seems overprotective, but much of generics is like that. ...
    (comp.lang.java.programmer)
  • Re: [PHP] Inherited and unimplemented method of a class
    ... public function foo() { ... class Bar extends Foo { ...
    (php.general)
  • Re: word perfect isnt perfect
    ... help it, but twice in the last two weeks, the "Master Document" ... without a trace. ... will take some work to redo. ... Foo, and foo. ...
    (rec.arts.sf.composition)
  • Re: calling function with default arguments
    ... But that's not strictly the same as saying it's not a real keyword. ... case is made in a namespace or semantic space, ... (defclass foo () ... data flow operation, (and yes, I would think twice about doing it :-) ...
    (comp.lang.lisp)
  • word perfect isnt perfect
    ... help it, but twice in the last two weeks, the "Master Document" ... feature has made the last four thousand words of my book disappear ... will take some work to redo. ... Foo, and foo. ...
    (rec.arts.sf.composition)