mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
- Fix crash
This commit is contained in:
parent
9f71179ca9
commit
a953f6bc5b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user