Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22463 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 87063 invoked by uid 1010); 15 Mar 2006 16:10:29 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 87048 invoked from network); 15 Mar 2006 16:10:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Mar 2006 16:10:29 -0000 X-Host-Fingerprint: 204.11.219.139 lerdorf.com Linux 2.4/2.6 Received: from ([204.11.219.139:34447] helo=colo.lerdorf.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id AB/03-55982-47C38144 for ; Wed, 15 Mar 2006 11:10:29 -0500 Received: from [192.168.200.106] (c-24-6-5-134.hsd1.ca.comcast.net [24.6.5.134]) (authenticated bits=0) by colo.lerdorf.com (8.13.5/8.13.5/Debian-3) with ESMTP id k2FGAOdW023490 for ; Wed, 15 Mar 2006 08:10:25 -0800 Message-ID: <44183C6F.900@lerdorf.com> Date: Wed, 15 Mar 2006 08:10:23 -0800 User-Agent: Thunderbird 1.5 (Macintosh/20051201) MIME-Version: 1.0 To: internals Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: auto_globals_jit and register_argc_argv disconnect From: rasmus@lerdorf.com (Rasmus Lerdorf) Our default config has both auto_globals_jit and register_argc_argv enabled. However, having register_argc_argv enabled disables auto_globals_jit which carries a really high WTF factor. We can fix this by shuffling things around a bit and making 2 calls to php_build_argv. One to populate the global argc/argv in cli mode and another to populate the _SERVER version from either php_auto_globals_create_server or php_register_server_variables depending on how we do the checks in php_hash_environment. Then to connect the references we'd need a hash lookup in php_build_argv. It gets a bit messy, but I don't think the current situation makes any sense at all. Anybody see a clean way out of this? -Rasmus