auto_globals_jit and register_argc_argv disconnect

From: Date: Wed, 15 Mar 2006 16:10:23 +0000
Subject: auto_globals_jit and register_argc_argv disconnect
Groups: php.internals 
Request: Send a blank email to internals+get-22463@lists.php.net to get a copy of this message
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

« previous php.internals (#22463) next »