On Sat, Sep 15, 2001 at 04:11:47PM +0200, Wolfram Kriesing wrote : 
> > 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 :-(
>    }
>  }
>  -------------

Good .. or bad. It's a Zend1 limitation. I'm sure Zend2 will
remove this problem.

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

Have you tried with creating a reference from the object upon
instancing it? $foo = &new Object; ?

- Markus

-- 
Markus Fischer,  http://guru.josefine.at/~mfischer/
EMail:         [EMAIL PROTECTED]
PGP Public  Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1  C2B5 D674 B445 C227 2BD0
              -All your scripts are belong to Zend-

-- 
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