I am sorry, but for some reason I didn't get your reply on the general
list.
- I am running PHP 5.1.4
- No, I am not running APC.
Any further ideas?
Thanks.
-----Original Message-----
From: Rasmus Lerdorf [mailto:rasmus@lerdorf.com]
Sent: Tuesday, August 15, 2006 11:24 AM
To: Artzi, Yoav (Yoav)
Cc: internals@lists.php.net
Subject: Re: [PHP-DEV] auto_globals_jit breaks $_SERVER var
Artzi, Yoav (Yoav) wrote:
I have the following in my php.ini:
register_globals = Off
register_long_arrays = Off
register_argc_argv = Off
auto_globals_jit = On
The following PHP code prints nothing:<?php
$webroot = $_SERVER['DOCUMENT_ROOT'];
$server = $_SERVER["HOST"];
$file = $_SERVER["SCRIPT_FILENAME"];
$transport = $_SERVER["REQUEST_TRANSPORT"]; $port =
$_SERVER["SERVER_PORT"]; print "$webroot"; print "$server"; print
"$transport"; ?>The rest of the php.ini is like php.ini-recommended that comes with
the source. Any idea what might be the problem?
You never answered my question from php-general. Are you running APC,
if so, which version? Which version of PHP are you running? Chances
are an upgrade of either or both will fix this.
-Rasmus