Re: [PHP] References challenge with PHP4

2007-03-25 Thread Martin Alterisio
2007/3/23, Jochem Maas [EMAIL PROTECTED]: Martin Alterisio wrote: 2007/3/20, Jochem Maas [EMAIL PROTECTED] mailto: [EMAIL PROTECTED]: Robert Cummings wrote: On Tue, 2007-03-20 at 11:52 +0100, Jochem Maas wrote: ok, I tried it in a whole number of variations - no joy.

Re: [PHP] References challenge with PHP4

2007-03-23 Thread Jochem Maas
Martin Alterisio wrote: 2007/3/20, Jochem Maas [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: Robert Cummings wrote: On Tue, 2007-03-20 at 11:52 +0100, Jochem Maas wrote: ok, I tried it in a whole number of variations - no joy. you should use php5 if you want

Re: [PHP] References challenge with PHP4

2007-03-21 Thread Martin Alterisio
2007/3/20, Jochem Maas [EMAIL PROTECTED]: Robert Cummings wrote: On Tue, 2007-03-20 at 11:52 +0100, Jochem Maas wrote: ok, I tried it in a whole number of variations - no joy. you should use php5 if you want this kind of reference stuff - in php5 it just works, php 4 will give you big

Re: [PHP] References challenge with PHP4

2007-03-21 Thread Robert Cummings
On Wed, 2007-03-21 at 18:09 -0300, Martin Alterisio wrote: Actually, is not a bug, is expected behaviour and documented in the manual http://php.net/static See the last section, named references with global and static variables static and global are implemented internally as references,

Re: [PHP] References challenge with PHP4

2007-03-20 Thread Lluis Pamies
En/na Jochem Maas ha escrit: Lluis Pamies wrote: I've the following code: 1 ?php 2 3 class B { 4 function B($a) { 5 $this-a = $a; 6 } 7 8 function run() { 9 print {$this-a-msg}\n; 10 } 11 } 12 13 class A { 14 function A() { 15 $this-b = new B($this); 16

Re: [PHP] References challenge with PHP4

2007-03-20 Thread Jochem Maas
ok, I tried it in a whole number of variations - no joy. you should use php5 if you want this kind of reference stuff - in php5 it just works, php 4 will give you big headaches. Lluis Pamies wrote: En/na Jochem Maas ha escrit: Lluis Pamies wrote: I've the following code: 1 ?php 2 3

Re: [PHP] References challenge with PHP4

2007-03-20 Thread Robert Cummings
On Tue, 2007-03-20 at 11:52 +0100, Jochem Maas wrote: ok, I tried it in a whole number of variations - no joy. you should use php5 if you want this kind of reference stuff - in php5 it just works, php 4 will give you big headaches. Now now, don't be calling PHP5 ALL THAT when it can't do it

Re: [PHP] References challenge with PHP4

2007-03-20 Thread Jochem Maas
Robert Cummings wrote: On Tue, 2007-03-20 at 11:52 +0100, Jochem Maas wrote: ok, I tried it in a whole number of variations - no joy. you should use php5 if you want this kind of reference stuff - in php5 it just works, php 4 will give you big headaches. Now now, don't be calling PHP5 ALL

[PHP] References challenge with PHP4

2007-03-16 Thread Lluis Pamies
I've the following code: 1 ?php 2 3 class B { 4 function B($a) { 5 $this-a = $a; 6 } 7 8 function run() { 9 print {$this-a-msg}\n; 10 } 11 } 12 13 class A { 14 function A() { 15 $this-b = new B($this); 16 } 17 18 function getInstance() { 19 static