Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22466 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18868 invoked by uid 1010); 15 Mar 2006 17:01:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 18802 invoked from network); 15 Mar 2006 17:01:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Mar 2006 17:01:44 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:61526] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 60/74-55982-3D248144 for ; Wed, 15 Mar 2006 11:37:40 -0500 Received: (qmail 21926 invoked from network); 15 Mar 2006 16:37:34 -0000 Received: from internal.zend.office (HELO thinkpad) (10.1.1.1) by internal.zend.office with SMTP; 15 Mar 2006 16:37:34 -0000 To: "'Rasmus Lerdorf'" , "'internals'" Date: Wed, 15 Mar 2006 19:36:20 +0300 Message-ID: <001d01c6484e$9a960610$6e02a8c0@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 In-Reply-To: <44183C6F.900@lerdorf.com> X-mimeole: Produced By Microsoft MimeOLE V6.00.2900.2670 Importance: Normal Subject: RE: [PHP-DEV] auto_globals_jit and register_argc_argv disconnect From: dmitry@zend.com ("Dmitry Stogov") References: <44183C6F.900@lerdorf.com> Hi Rasmus, Why you need "register_argc_argv" in your php.ini? Isn't CLI version sets it by default? Also, do we need this "register_argc_argv" for some SAPI except CLI, CGI = and EMBED? Dmitry. > -----Original Message----- > From: Rasmus Lerdorf [mailto:rasmus@lerdorf.com]=20 > Sent: Wednesday, March 15, 2006 7:10 PM > To: internals > Subject: [PHP-DEV] auto_globals_jit and register_argc_argv disconnect >=20 >=20 > Our default config has both auto_globals_jit and register_argc_argv=20 > enabled. However, having register_argc_argv enabled disables=20 > auto_globals_jit which carries a really high WTF factor. >=20 > We can fix this by shuffling things around a bit and making 2=20 > calls to=20 > php_build_argv. One to populate the global argc/argv in cli mode and=20 > another to populate the _SERVER version from either=20 > php_auto_globals_create_server or php_register_server_variables=20 > depending on how we do the checks in php_hash_environment. Then to=20 > connect the references we'd need a hash lookup in php_build_argv. It=20 > gets a bit messy, but I don't think the current situation makes any=20 > sense at all. Anybody see a clean way out of this? >=20 > -Rasmus >=20 > --=20 > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >=20 >=20 >=20