On Sun, May 27, 2007 at 11:35:04AM -0400, Daniel Convissor wrote:
> On Sat, May 26, 2007 at 01:50:04PM +0200, Bart de Boer wrote:
> >
> > class Base {
> > public static $var = 'hello';
> >
> > public function someFunc() {
> > echo self::$var; // Currently maps to Base::$var
> > echo $this::$var; // Should map to Child::$var
>
> Here, and throughout the example, you're mixing static and object
> contexts. You need to pick one or the other and stick to it. If you
> really want static, use child::$var.
Though that's only working because the child class' name is "Child". :/
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php