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:[EMAIL PROTECTED] > Sent: Wednesday, March 15, 2006 7:10 PM > To: internals > Subject: [PHP-DEV] auto_globals_jit and register_argc_argv disconnect > > > 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 > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php