Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:14404 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 11709 invoked by uid 1010); 19 Jan 2005 10:34:11 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 11694 invoked from network); 19 Jan 2005 10:34:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Jan 2005 10:34:11 -0000 X-Host-Fingerprint: 212.55.154.22 relay2.ptmail.sapo.pt Linux 2.4/2.6 Received: from ([212.55.154.22:49674] helo=sapo.pt) by pb1.pair.com (ecelerity HEAD (r4105:4106)) with SMTP id 52/42-37745-1A73EE14 for ; Wed, 19 Jan 2005 05:34:10 -0500 Received: (qmail 20689 invoked from network); 19 Jan 2005 10:34:06 -0000 Received: from unknown (HELO sapo.pt) (10.134.35.155) by relay2 with SMTP; 19 Jan 2005 10:34:06 -0000 Received: (qmail 13803 invoked from network); 19 Jan 2005 10:34:05 -0000 Received: from unknown (HELO pc07653) (nunoplopes@sapo.pt@[81.193.158.200]) (envelope-sender ) by mta5 (qmail-ldap-1.03) with SMTP for ; 19 Jan 2005 10:34:05 -0000 Message-ID: <006e01c4fe12$7eb4efb0$0100a8c0@pc07653> To: "Derick Rethans" , "Philip Olson" Cc: References: Date: Wed, 19 Jan 2005 10:34:45 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 Subject: Re: [PHP-DEV] What is auto_globals_jit? From: nlopess@php.net ("Nuno Lopes") > On Wed, 19 Jan 2005, Philip Olson wrote: > >> Could someone explain auto_globals_jit a little? It'll then >> be documented :) > > AFAIK it is a setting to control whether autoglobals (GET/POST/COOKIE et > al.) should be initialized JIT (Just In Time, when they are first used), > or always when the script starts. I am not sure for which auto globals > this setting has any effect though. > > Derick Doing a search at LXR, I've found this http://lxr.php.net/source/php-src/main/php_variables.c#579 JIT is controled by this: zend_bool jit_initialization = (PG(auto_globals_jit) && !PG(register_globals) && !PG(register_long_arrays) && !PG(register_argc_argv)); So, you need auto_globals_jit enabled, as well register_globals, register_long_arrays and register_argc_argv disabled. Looking below, we can check that it is only applied to $_ENV and to $_SERVER. $_POST, $_GET and $_COOKIE seems not to implement this JIT initalization. $_REQUEST seems also not to be initialized when 'jit_initialization' is true. But to be sure, just make a bit of testing :) Nuno