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.
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
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
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,
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
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
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
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
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
9 matches
Mail list logo