Re: README.PHP4-TO-PHP5-THIN-CHANGES
| From: | Jani Taskinen | Date: | Tue, 27 Jan 2004 18:02:31 +0000 |
| Subject: | Re: README.PHP4-TO-PHP5-THIN-CHANGES | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-7363@lists.php.net to get a copy of this message | ||
There's open bug about 'register_long_arrays', if it's
'Off', some of the super-globals won't work.
--Jani
On Tue, 27 Jan 2004, Daniel Convissor wrote:
>Greetings:
>
>The following message got overlooked over the past few days. It'd be
>really nice if someone could answer this please so PHP 5 will work...
>
>Thanks!
>
>----- Forwarded message -----
>
>From: Daniel Convissor <danielc@analysisandsolutions.com>
>To: PHP Internals List <internals@lists.php.net>
>Date: Sat, 17 Jan 2004 15:40:47 -0500
>Subject: Re: [PHP-DEV] README.PHP4-TO-PHP5-THIN-CHANGES
>
>On Sat, Jan 17, 2004 at 03:08:32PM -0500, Greg Beaver wrote:
>>
>> $_SERVER should be populated with argc and argv if variables_order
>> includes "S".
>
>Unfortunately, this isn't working on my system with the
>php5-win32-200401161930 snapshot. Perhaps I'm misunderstanding something?
>
>My variables_order has "GPCS" and register_argc_argv is "On" but
>$_SERVER['argv'] isn't there.
>
>Test script:
>
><?php
>echo "\$_SERVER\n";
>var_dump($_SERVER);
>
>echo "\n\$_SERVER['argv']\n";
>var_dump($_SERVER['argv']);
>
>echo "\n\$argv\n";
>var_dump($argv);
>
>echo 'register_argc_argv = ' . ini_get('register_argc_argv') .
>"\n";
>echo 'variables_order = ' . ini_get('variables_order') . "\n";
>?>
>
>
>Regardless of the register_argc_argv and variables_order settings in the
>php.ini file, the following happens:
> $_SERVER is filled with loads of stuff
> $_SERVER['argv'] is not set
> $argv is set
> register_argc_argv says 1
>
>The right .ini file is being read, because changing variables_order shows
>up in the ini_get() output.
>
>So, what am I forgetting?
>
>--Dan
>
>----- End forwarded message -----
>
>