Changeset 1435 in svn for trunk


Ignore:
Timestamp:
2013-10-22T18:55:28+02:00 (22 months ago)
Author:
Xuefer
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r1432 r1435  
    729729    ext = (zend_extension *) zend_extensions.head->data;
    730730    if (strcmp(ext->name, XCACHE_NAME) != 0) {
    731         zend_error(E_WARNING, "XCache failed to load itself to before \"%s\". compatibility downgraded", ext->name);
    732     }
    733 
    734     old_compile_file = zend_compile_file;
    735     zend_compile_file = xc_check_initial_compile_file;
     731        zend_error(E_WARNING, "XCache failed to load itself to before zend_extension=\"%s\". compatibility downgraded", ext->name);
     732    }
    736733
    737734    for (ext = (zend_extension *) zend_llist_get_first_ex(&zend_extensions, &lpos);
     
    821818    /* must be the first */
    822819    xcache_zend_extension_add(&xc_zend_extension_entry, 1);
     820    old_compile_file = zend_compile_file;
     821    zend_compile_file = xc_check_initial_compile_file;
     822
    823823#ifdef HAVE_XCACHE_OPTIMIZER
    824824    xc_optimizer_startup_module();
Note: See TracChangeset for help on using the changeset viewer.