Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25364 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 3812 invoked by uid 1010); 15 Aug 2006 08:52:57 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 3797 invoked from network); 15 Aug 2006 08:52:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Aug 2006 08:52:57 -0000 X-PHP-List-Original-Sender: stuttle@gmail.com X-Host-Fingerprint: 87.117.193.62 uk1.moxiemon.net Received: from [87.117.193.62] ([87.117.193.62:60875] helo=horatio.sharedserver.net) by pb1.pair.com (ecelerity 2.1.1.8 r(12549M)) with ESMTP id 25/66-50872-7B681E44 for ; Tue, 15 Aug 2006 04:32:56 -0400 Received: from [10.10.206.228] (unknown [194.131.158.1]) by horatio.sharedserver.net (Postfix) with ESMTP id 09947A1772D; Tue, 15 Aug 2006 09:19:57 +0100 (BST) Message-ID: <44E186CA.9040802@gmail.com> Date: Tue, 15 Aug 2006 09:33:14 +0100 User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: Rasmus Lerdorf CC: "Artzi, Yoav \(Yoav\)" , internals@lists.php.net References: <44E184AA.7020702@lerdorf.com> In-Reply-To: <44E184AA.7020702@lerdorf.com> 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: stuttle@gmail.com (Stut) Rasmus Lerdorf wrote: > 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. We have seen a similar problem with Zend Platform (2.2.0) and PHP 5.1.4. On the first request everything is fine, but on a refresh all the superglobals are empty. Turning off auto_globals_jit fixes it, as does disabling the Zend Platform. Dunno if that helps you or not. -Stut