Changeset 296 in svn


Ignore:
Timestamp:
2006-12-03T03:57:37+01:00 (8 years ago)
Author:
Xuefer
Message:

fixed compatibility with zo under apache 1.x

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r295 r296  
    23582358    zend_extension_dispatch_message(ZEND_EXTMSG_NEW_EXTENSION, &extension);
    23592359
    2360     zend_llist_add_element(&zend_extensions, &extension);
     2360    zend_llist_prepend_element(&zend_extensions, &extension);
    23612361#ifdef DEBUG
    23622362    fprintf(stderr, "registered\n");
     
    24322432    xc_module_gotup = 1;
    24332433    if (!xc_zend_extension_gotup) {
    2434         if (zend_get_extension(XCACHE_NAME) == NULL) {
    2435             xc_zend_extension_register(&zend_extension_entry, 0);
    2436             xc_zend_extension_startup(&zend_extension_entry);
    2437             xc_zend_extension_faked = 1;
    2438         }
     2434        xc_zend_extension_register(&zend_extension_entry, 0);
     2435        xc_zend_extension_startup(&zend_extension_entry);
     2436        xc_zend_extension_faked = 1;
    24392437    }
    24402438
     
    26322630ZEND_DLEXPORT int xcache_zend_startup(zend_extension *extension) /* {{{ */
    26332631{
    2634     if (xc_zend_extension_gotup) {
    2635         return SUCCESS;
    2636     }
    26372632    xc_zend_extension_gotup = 1;
    26382633    xc_llist_element = NULL;
Note: See TracChangeset for help on using the changeset viewer.