Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25362 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96525 invoked by uid 1010); 15 Aug 2006 08:24:17 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 96510 invoked from network); 15 Aug 2006 08:24:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Aug 2006 08:24:17 -0000 X-PHP-List-Original-Sender: rasmus@lerdorf.com X-Host-Fingerprint: 204.11.219.139 lerdorf.com Linux 2.5 (sometimes 2.4) (4) Received: from [204.11.219.139] ([204.11.219.139:43930] helo=lerdorf.com) by pb1.pair.com (ecelerity 2.1.1.8 r(12549M)) with ESMTP id 68/E5-50872-FA481E44 for ; Tue, 15 Aug 2006 04:24:16 -0400 Received: from [192.168.200.104] (c-24-6-5-134.hsd1.ca.comcast.net [24.6.5.134]) (authenticated bits=0) by lerdorf.com (8.13.7/8.13.7/Debian-1) with ESMTP id k7F8OA4p016470; Tue, 15 Aug 2006 01:24:11 -0700 Message-ID: <44E184AA.7020702@lerdorf.com> Date: Tue, 15 Aug 2006 01:24:10 -0700 User-Agent: Thunderbird 1.5.0.5 (Macintosh/20060719) MIME-Version: 1.0 To: "Artzi, Yoav \(Yoav\)" CC: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] auto_globals_jit breaks $_SERVER var From: rasmus@lerdorf.com (Rasmus Lerdorf) 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: > > $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