- Fix crash

This commit is contained in:
Andi Gutmans 2000-10-18 19:48:17 +00:00
parent 9f71179ca9
commit a953f6bc5b

View File

@ -138,13 +138,17 @@ static void zend_extension_shutdown(zend_extension *extension)
#endif
}
static int zend_compare_extensions(zend_extension *extension1, zend_extension *extension2)
{
return (extension1->handle == extension2->handle);
}
static void zend_extension_startup(zend_extension *extension)
{
#if ZEND_EXTENSIONS_SUPPORT
if (extension->startup) {
if (extension->startup(extension)!=SUCCESS) {
DL_UNLOAD(extension->handle);
zend_llist_del_element(&zend_extensions, extension, (int(*)(void *, void *)) zend_compare_extensions);
}
}
#endif