Skip to content

Commit 671caa6

Browse files
committed
Fixed zend extensions multipy-times loadable
1 parent 697472e commit 671caa6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Zend/zend_extensions.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@ int zend_load_extension(const char *path TSRMLS_DC)
100100
fprintf(stderr, "Cannot load %s - it was built with configuration %s, whereas running engine is %s\n",
101101
new_extension->name, extension_version_info->build_id, ZEND_EXTENSION_BUILD_ID);
102102
/* See http://support.microsoft.com/kb/190351 */
103+
#ifdef PHP_WIN32
104+
fflush(stderr);
105+
#endif
106+
DL_UNLOAD(handle);
107+
return FAILURE;
108+
} else if (zend_get_extension(new_extension->name)) {
109+
fprintf(stderr, "Cannot load %s - it was already loade\n", new_extension->name);
110+
/* See http://support.microsoft.com/kb/190351 */
103111
#ifdef PHP_WIN32
104112
fflush(stderr);
105113
#endif

0 commit comments

Comments
 (0)