Re: [PHP] Getting static member for a class which name is stored

2004-11-28 Thread Jake Press
Greg Beaver wrote: How about: echo Myclass::$myvar; ?> The only problem is if you want to be able to generically access a static variable from any class that has it, like $Myclass::$myvar. Greg Hi Greg, Yup, Exactly That is the problem we are attempting to deal with :) (hence the name of this th

Re: [PHP] Getting static member for a class which name is stored

2004-11-28 Thread Greg Beaver
Jake Press wrote: Simas Toleikis wrote: Jake Press wrote: Hi Francisco, Your not alone, a number of other users have enountered this bug. string get_class ( object obj ) Its not a bug... You are getting class name as a string for output purposes etc.. Doing something like "TestClass"::some_static

Re: [PHP] Getting static member for a class which name is stored in a variable

2004-11-27 Thread Jake Press
Simas Toleikis wrote: Jake Press wrote: Hi Francisco, Your not alone, a number of other users have enountered this bug. string get_class ( object obj ) Its not a bug... You are getting class name as a string for output purposes etc.. Doing something like "TestClass"::some_static is ofcourse illega

Re: [PHP] Getting static member for a class which name is stored in a variable

2004-11-26 Thread Simas Toleikis
Jake Press wrote: Hi Francisco, Your not alone, a number of other users have enountered this bug. string get_class ( object obj ) Its not a bug... You are getting class name as a string for output purposes etc.. Doing something like "TestClass"::some_static is ofcourse illegal wih strings. -- PHP

Re: [PHP] Getting static member for a class which name is stored in a variable

2004-11-25 Thread Jake Press
Hi Francisco, Your not alone, a number of other users have enountered this bug. :( I have submitted a bug report, here: http://bugs.php.net/bug.php?id=30716 It would be appreciated if you show your support for this bug by commenting/voting etc :) I also have a `thread` on the php.generals mailing

[PHP] Getting static member for a class which name is stored in a variable

2004-11-25 Thread Francisco M. Marzoa Alonso
I've code like follows: class TestClass { public static $Data = 'This is the data'; } $Obj = new TestClass (); $ClassName = get_class ($Obj); echo $ClassName::$Data; ?> It gives me an error like: Parse error: parse error, unexpected T_PAAMAYIM_NEKUDOTAYIM ... I've found googling that it means t