Re: $GLOBALS broken?
| From: | J Smith | Date: | Tue, 04 Mar 2003 19:25:34 +0000 |
| Subject: | Re: $GLOBALS broken? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-94777@lists.php.net to get a copy of this message | ||
Just noticed register_long_arrays. Turning it on fixes problems with
$_SERVER and $_ENV, but $GLOBALS still acts weird.
J
Shane Caraveo wrote:
> It's a patch to ze2 that was done over the weekend, there is a new ini
> setting that if you turn it on will fix the problem, just cannot
> remember what it was right now...
> Shane
>
> Sebastian Bergmann wrote:
>> Notice: Undefined variable: GLOBALS in E:\test.php on line 7
>>
>> 1 <?php
>> 2 function foo() {
>> 3 $GLOBALS['foo'] = 'bar';
>> 4 }
>> 5
>> 6 function bar() {
>> 7 echo $GLOBALS['foo'];
>> 8 }
>> 9
>> 10 foo();
>> 11 bar();
>> 12 ?>
>>