From afa7c84142c21f3b0192c3f2ae69d375f6aec131 Mon Sep 17 00:00:00 2001 From: Xuefer Date: Sun, 27 Aug 2006 09:49:45 +0000 Subject: [PATCH] trigger jit on $_SERVER when needed git-svn-id: svn://svn.lighttpd.net/xcache/trunk@105 c26eb9a1-5813-0410-bd6c-c2e55f420ca7 --- xcache.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xcache.c b/xcache.c index 7f9bf7a..bc05250 100644 --- a/xcache.c +++ b/xcache.c @@ -1190,6 +1190,9 @@ static int xcache_admin_auth_check(TSRMLS_D) /* {{{ */ zend_bailout(); } +#ifdef ZEND_ENGINE_2_1 + zend_is_auto_global("_SERVER", sizeof("_SERVER") - 1); +#endif if (zend_hash_find(&EG(symbol_table), "_SERVER", sizeof("_SERVER"), (void **) &server) != SUCCESS || Z_TYPE_PP(server) != IS_ARRAY) { php_error_docref(NULL TSRMLS_CC, E_ERROR, "_SERVER is corrupted"); zend_bailout();