Re: call_user_func, static calls, and $this

From: Date: Wed, 13 Aug 2003 16:46:20 +0000
Subject: Re: call_user_func, static calls, and $this
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-3880@lists.php.net to get a copy of this message
Hello Brad, Wednesday, August 13, 2003, 9:51:23 AM, you wrote: BB> i can't say. you want to be able to call parent::method() and have $this BB> available there, for sure. it is not truly a static call, it is just syntax BB> that looks like static, i think. (but for sure i don't know!) 'static' BB> modifier to function def was added, if i read archive right, for the reason BB> you say. (though 'static function bar()' has no $this whether called as class::bar(), $x->>bar(), or $this->bar() - so not really about how it is BB> called, more about what it is.) parent::method() is static / dynamic if parent::method() is defined as static / dynamic. We do not distinguish by call but instead by method definition. marcus

« previous php.internals (#3880) next »