Re: [PHP] Static Class Member References

2010-07-14 Thread Daniel Kolbo
David Harkness wrote: > Ah, so assigning a reference to a variable already holding a reference > changes that variable's reference only in the same way that unsetting a > reference doesn't unset the other variables referencing the same thing, yes? > > $a = 5; > $b = &$a; > print $a; >> 5 > unset

Re: [PHP] Static Class Member References

2010-07-14 Thread David Harkness
Ah, so assigning a reference to a variable already holding a reference changes that variable's reference only in the same way that unsetting a reference doesn't unset the other variables referencing the same thing, yes? $a = 5; $b = &$a; print $a; > 5 unset($b); // does not affect $a print $a; >

RE: [PHP] Static Class Member References

2010-07-14 Thread Ford, Mike
> -Original Message- > From: Daniel Kolbo [mailto:kolb0...@umn.edu] > Sent: 11 July 2010 23:19 > > Hello PHPers, > > I'm having some trouble understanding some PHP behaviour. The > following > example script exhibits the behaviour which I cannot understand. I'm pretty sure that this is

Re: [PHP] Static Class Member References

2010-07-13 Thread Daniel Kolbo
Richard Quadling wrote: > On 13 July 2010 09:46, Richard Quadling wrote: >> On 12 July 2010 22:54, Daniel Kolbo wrote: >>> Richard Quadling wrote: On 11 July 2010 23:19, Daniel Kolbo wrote: > Hello PHPers, > > I'm having some trouble understanding some PHP behaviour. The follow

Re: [PHP] Static Class Member References

2010-07-13 Thread Daniel Kolbo
Richard Quadling wrote: > On 12 July 2010 22:54, Daniel Kolbo wrote: >> Richard Quadling wrote: >>> On 11 July 2010 23:19, Daniel Kolbo wrote: Hello PHPers, I'm having some trouble understanding some PHP behaviour. The following example script exhibits the behaviour which I c

Re: [PHP] Static Class Member References

2010-07-13 Thread Richard Quadling
On 13 July 2010 09:46, Richard Quadling wrote: > On 12 July 2010 22:54, Daniel Kolbo wrote: >> Richard Quadling wrote: >>> On 11 July 2010 23:19, Daniel Kolbo wrote: Hello PHPers, I'm having some trouble understanding some PHP behaviour.  The following example script exhibits

Re: [PHP] Static Class Member References

2010-07-13 Thread Richard Quadling
On 12 July 2010 22:54, Daniel Kolbo wrote: > Richard Quadling wrote: >> On 11 July 2010 23:19, Daniel Kolbo wrote: >>> Hello PHPers, >>> >>> I'm having some trouble understanding some PHP behaviour.  The following >>> example script exhibits the behaviour which I cannot understand. >>> [code] >>>

Re: [PHP] Static Class Member References

2010-07-12 Thread Daniel Kolbo
Richard Quadling wrote: > On 11 July 2010 23:19, Daniel Kolbo wrote: >> Hello PHPers, >> >> I'm having some trouble understanding some PHP behaviour. The following >> example script exhibits the behaviour which I cannot understand. >> [code] >> > >> class A >> { >>public static $a = 3; >>

Re: [PHP] Static Class Member References

2010-07-12 Thread Richard Quadling
On 11 July 2010 23:19, Daniel Kolbo wrote: > Hello PHPers, > > I'm having some trouble understanding some PHP behaviour.  The following > example script exhibits the behaviour which I cannot understand. > [code] > > class A > { >        public static $a = 3; > >        function __construct() >