Browse Source

recognize extension loaded after xcache (to avoid caching opcode which is loaded from file by the latter extension)

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1435 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.2
Xuefer 8 years ago
parent
commit
d50f8caa90
  1. 8
      xcache.c

8
xcache.c

@ -728,12 +728,9 @@ static int xc_zend_startup(zend_extension *extension) /* {{{ */
ext = (zend_extension *) zend_extensions.head->data;
if (strcmp(ext->name, XCACHE_NAME) != 0) {
zend_error(E_WARNING, "XCache failed to load itself to before \"%s\". compatibility downgraded", ext->name);
zend_error(E_WARNING, "XCache failed to load itself to before zend_extension=\"%s\". compatibility downgraded", ext->name);
}
old_compile_file = zend_compile_file;
zend_compile_file = xc_check_initial_compile_file;
for (ext = (zend_extension *) zend_llist_get_first_ex(&zend_extensions, &lpos);
ext;
ext = (zend_extension *) zend_llist_get_next_ex(&zend_extensions, &lpos)) {
@ -820,6 +817,9 @@ static PHP_MINIT_FUNCTION(xcache) /* {{{ */
/* must be the first */
xcache_zend_extension_add(&xc_zend_extension_entry, 1);
old_compile_file = zend_compile_file;
zend_compile_file = xc_check_initial_compile_file;
#ifdef HAVE_XCACHE_OPTIMIZER
xc_optimizer_startup_module();
#endif

Loading…
Cancel
Save