Re: RE:Class::? - accessing data, no success...

From: Date: Thu, 06 Jul 2000 11:26:09 +0000
Subject: Re: RE:Class::? - accessing data, no success...
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-23703@lists.php.net to get a copy of this message
I don't think what you're talking about is so ambiguous. We actually planned it this way. The logic behind it is, if you call a function which is supposed to be "static" then you won't be using $this inside of it and it will work without problems from the global scope. If you call a function which uses $this from the outside then it will be called but you won't have a $this defined (a programming error of the PHP coder). I think it's not that ambiguous or bad the way it is now.
Hi Andi, actually $this is not the problem nor the point of ambiguity, it was clear if no instance has been creating that calling $this connet be used to access objects properties... If you´ve missed something check out bug #5377, Kristian has explained there thoroughly what would be ambigous and what not - if you want to I can summarize it again. regards -- o----------0-¬---------O-·---¬----o---®-----o o O ° . | http://www.kiffen.de | pRoteçt y0ur bRaín |0 O ° ¤ ° · 0°·³°²'²³-¹'³´³°^°³~³²³°'³²²¨³²^³¹³²°²³`³º³°Þ ° o © ° . · | psychedelic experience | gott@kiffen.de | O ° o ° o-¬--o--0-----©-·--O-----o-----0-¤----------o 0 ° · ° . ¤ ·

« previous php.dev (#23703) next »