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

Reply via email to