Changeset 1172 in svn


Ignore:
Timestamp:
2012-11-13T10:22:46+01:00 (3 years ago)
Author:
Xuefer
Message:

TODO: cause problem with "Zend Optimizer vs ioncube loader"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r1164 r1172  
    585585    zend_bool catched = 0;
    586586    zend_llist old_zend_extensions = zend_extensions;
     587#if TODO
     588    zend_llist_position lpos;
     589    zend_extension *ext;
     590#endif
    587591    TSRMLS_FETCH();
    588592
     
    597601    zend_extensions.count = 0;
    598602    zend_extensions.dtor = NULL;
     603#if TODO
     604    for (ext = (zend_extension *) zend_llist_get_first_ex(&old_zend_extensions, &lpos);
     605            ext;
     606            ext = (zend_extension *) zend_llist_get_next_ex(&old_zend_extensions, &lpos)) {
     607        if (!(strcmp(ext->name, XCACHE_NAME) == 0 || strncmp(ext->name, XCACHE_NAME " ", sizeof(XCACHE_NAME " ") - 1) == 0)) {
     608            zend_llist_add_element(&zend_extensions, ext);
     609        }
     610    }
     611#endif
    599612    zend_llist_add_element(&zend_extensions, extension);
    600613    extension = zend_get_extension(extension->name);
     
    608621
    609622    /* restore */
    610     zend_llist_remove_tail(&zend_extensions);
     623    zend_llist_destroy(&zend_extensions);
    611624    zend_extensions = old_zend_extensions;
    612625    if (catched) {
Note: See TracChangeset for help on using the changeset viewer.