1
0
Fork 0

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
This commit is contained in:
Xuefer 2013-10-22 16:55:28 +00:00
parent 08b16f24d7
commit d50f8caa90
1 changed files with 4 additions and 4 deletions

View File

@ -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