1
0
Fork 0

remove superfluous code about auto_globals

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@679 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 14 years ago
parent ebae2a7fd8
commit 15d74bace5

@ -585,10 +585,6 @@ static void xc_sandbox_error_cb(int type, const char *error_filename, const uint
#ifdef ZEND_ENGINE_2_1
static zend_bool xc_auto_global_callback(char *name, uint name_len TSRMLS_DC) /* {{{ */
{
zend_auto_global *auto_global;
if (zend_u_hash_find(CG(auto_globals), UG(unicode) ? IS_UNICODE : IS_STRING, ZSTR(name), name_len + 1, (void **) &auto_global) == FAILURE) {
return 1;
}
return 0;
}
/* }}} */

@ -772,14 +772,6 @@ static zend_op_array *xc_entry_install(xc_entry_t *xce, zend_file_handle *h TSRM
/* trigger auto_globals jit */
for (i = 0; i < p->autoglobal_cnt; i ++) {
xc_autoglobal_t *aginfo = &p->autoglobals[i];
/*
zend_auto_global *auto_global;
if (zend_u_hash_quick_find(CG(auto_globals), aginfo->type, aginfo->key, aginfo->key_len+1, aginfo->h, (void **) &auto_global)==SUCCESS) {
if (auto_global->armed) {
auto_global->armed = auto_global->auto_global_callback(auto_global->name, auto_global->name_len TSRMLS_CC);
}
}
*/
zend_u_is_auto_global(aginfo->type, aginfo->key, aginfo->key_len TSRMLS_CC);
}
#endif

Loading…
Cancel
Save