RE: [PHP-DEV] auto_globals_jit and register_argc_argv disconnect
| From: | Dmitry Stogov | Date: | Mon, 20 Mar 2006 15:35:14 +0000 |
| Subject: | RE: [PHP-DEV] auto_globals_jit and register_argc_argv disconnect | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-22540@lists.php.net to get a copy of this message | ||
Hi Zeev,
> -----Original Message-----
> From: Zeev Suraski [mailto:zeev@zend.com]
> Sent: Monday, March 20, 2006 6:20 PM
> To: Rasmus Lerdorf
> Cc: internals
> Subject: Re: [PHP-DEV] auto_globals_jit and
> register_argc_argv disconnect
>
>
> At 16:07 20/03/2006, Rasmus Lerdorf wrote:
> >Zeev Suraski wrote:
> >>At 18:10 15/03/2006, Rasmus Lerdorf wrote:
> >>>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.
> >>I don't think WTF terminology fits here, as it's an extreme case of
> >>performance optimization and doesn't affect functionality. Not
> >>exactly the interest of the average (and even advanced) user. It's
> >>end-user (developer) transparent. Irregardless, I actually think
> >>it makes perfect sense that if you ask PHP to do stuff with GET /
> >>POST variables on every request (register_argc_argv), it wouldn't
> >>make sense to JIT them.
> >
> >We don't jit GET/POST.
>
> OK, I agree with you, the correlation is a weaker than I thought
> (didn't recall I didn't get around to JIT'ing get/post). If we were
> to do it it probably makes sense to just keep a global reference to
> argv/argc, and move the code that puts them into _SERVER to
> php_register_server_variables(). Should be pretty clean, no?
This is already done near in the same way (in HEAD and PHP_5_1).
Thanks. Dmitry.