Re: [PHP] problem: creating global alias inside function

2003-07-28 Thread Tom Rogers
Hi, Tuesday, July 29, 2003, 12:32:33 AM, you wrote: MP> The following code illustrates a problem I've got with references (running MP> on PHP 4.3.2). Can anyone explain it for me? Thanks in advance for any MP> assistance! MP> Martin MP> $globalvariable = 0; MP> $one = 1; MP> //want to set up

Re: [PHP] problem: creating global alias inside function

2003-07-28 Thread Tom Rogers
Hi, Tuesday, July 29, 2003, 12:32:33 AM, you wrote: MP> The following code illustrates a problem I've got with references (running MP> on PHP 4.3.2). Can anyone explain it for me? Thanks in advance for any MP> assistance! MP> Martin MP> $globalvariable = 0; MP> $one = 1; MP> //want to set up

Re: [PHP] problem: creating global alias inside function

2003-07-28 Thread Curt Zirzow
* Thus wrote Ford, Mike [LSS] ([EMAIL PROTECTED]): > > -Original Message- rints 0, not 1 > > > > function setglobal(&$one) > > { > > global $globalvariable; > > PHP actually handles this by executing the equivalent of: > > $globalvariable = &$GLOBALS['globalvariab

RE: [PHP] problem: creating global alias inside function

2003-07-28 Thread Ford, Mike [LSS]
> -Original Message- > From: Martin Peck [mailto:[EMAIL PROTECTED] > Sent: 28 July 2003 15:33 > > The following code illustrates a problem I've got with > references (running > on PHP 4.3.2). Can anyone explain it for me? Thanks in > advance for any > assistance! > Martin > > > $glo