Changeset 698 for trunk/xcache.c


Ignore:
Timestamp:
2011-02-08T06:13:22+01:00 (3 years ago)
Author:
moo
Message:

fix segv on shutdown when ionCube Loader is loaded

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r687 r698  
    35423542    if (xc_zend_extension_faked) { 
    35433543        zend_extension *ext = zend_get_extension(XCACHE_NAME); 
    3544         if (ext->shutdown) { 
    3545             ext->shutdown(ext); 
    3546         } 
    3547         xc_zend_remove_extension(ext); 
     3544        if (ext) { 
     3545            if (ext->shutdown) { 
     3546                ext->shutdown(ext); 
     3547            } 
     3548            xc_zend_remove_extension(ext); 
     3549        } 
    35483550    } 
    35493551    UNREGISTER_INI_ENTRIES(); 
Note: See TracChangeset for help on using the changeset viewer.