> My answer may be not well thought but ... from my knowledge,
> problems with php-gtk you can't assign references to global vars
> because this particaular declared global variable is a local
> reference to the global var.

as you say, i guess the "local reference to the global var"
is the problem

at least i also forgot to define the "${$classNameY}" as global
if i do so then the following happens (see comments in code)

class temp
   function temp()
     global $curClass,${"y"};
     $curClass = &${"y"};  # this doenst work
     $curClass = ${"y"};  # this works, but it's not a reference :-(

$curClass = &${"x"};
$tempi = new temp();

Wolfram Kriesing

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to