Changeset ef18f7a in git


Ignore:
Timestamp:
2012-07-14T02:58:47Z (7 years ago)
Author:
Xuefer <xuefer@…>
Branches:
3.0, 3.1, 3.2, master, trunk
Children:
7fa7675
Parents:
96ab621
Message:

closes #164: warning/error when xcache.so is loaded incorrectly

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@972 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xcache.c

    r96ab621 ref18f7a  
    38253825    xc_module_gotup = 1;
    38263826    if (!xc_zend_extension_gotup) {
     3827        zend_error(E_WARNING, "XCache is designed to be loaded as zend_extension not extension");
    38273828        xc_zend_extension_register(&zend_extension_entry, 0);
    38283829        xc_zend_extension_startup(&zend_extension_entry);
     
    40404041static int xc_zend_startup_last(zend_extension *extension) /* {{{ */
    40414042{
     4043    zend_extension *ext = zend_get_extension(XCACHE_NAME);
     4044    if (ext) {
     4045        zend_error(E_WARNING, "Module '" XCACHE_NAME "' already loaded");
     4046    }
    40424047    /* restore */
    40434048    extension->startup = xc_last_ext_startup;
     
    40694074
    40704075        xc_llist_zend_extension = xc_llist_get_element_by_zend_extension(&zend_extensions, XCACHE_NAME);
     4076        if (xc_llist_zend_extension != zend_extensions.head) {
     4077            zend_error(E_WARNING, "XCache must be loaded as the first zend_extension for maximum compatibility");
     4078        }
     4079        /* hide myself */
    40714080        xc_llist_unlink(&zend_extensions, xc_llist_zend_extension);
    40724081
Note: See TracChangeset for help on using the changeset viewer.