NYCPHP Meetup

NYPHP.org

[nycphp-talk] PHP Undocumented Functionality...

Flavio daCosta nyphp at n0p.net
Tue May 31 12:11:59 EDT 2005


On 05/31/2005 11:55 AM, Flavio daCosta wrote:
> Hmm, sounds like I need to do some testing with private variables...

Well, after some quick tests utilizing the newer php5 OO syntax:

1) declaring Debug::display() as static.
  Fatal error: Using $this when not in object context...

2) making SomeClass::errorMsg a private property.
  Fatal error: Cannot access private property SomeClass::$errorMsg

OK, This is more of what I was expecting.

Thanks guys for the responses.

Thanks
Flavio



More information about the talk mailing list