Re: expected __METHOD__ behavior

From: Date: Sat, 22 May 2004 00:24:03 +0000
Subject: Re: expected __METHOD__ behavior
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-10019@lists.php.net to get a copy of this message
"Daniel J Cain Jr ." <dan@cain.sh> wrote in message news:FBCF2135-AB83-11D8-A867-000A95BE1F8C@cain.sh... > > $instance = B::foo(); > ?> > > output is "A::foo". > > Is this correct? I would expect (want maybe :) ) to see output as > "B::foo". this is as designed. __METHOD__ is a compile-time evaluated token, not a runtime evaluated function. l0t3k

« previous php.internals (#10019) next »