mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
- Only run startup() if ZEND_EXTENSIONS is defined to 1.
This fixes a link error on platforms which don't support libdl
This commit is contained in:
parent
c6e0cef254
commit
b8cadf21db
1 changed files with 2 additions and 0 deletions
|
@ -141,11 +141,13 @@ static void zend_extension_shutdown(zend_extension *extension)
|
|||
|
||||
static void zend_extension_startup(zend_extension *extension)
|
||||
{
|
||||
#if ZEND_EXTENSIONS_SUPPORT
|
||||
if (extension->startup) {
|
||||
if (extension->startup(extension)!=SUCCESS) {
|
||||
DL_UNLOAD(extension->handle);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue