fprintf(stderr, "Cannot load %s - it was built with configuration %s, whereas running engine is %s\n",
new_extension->name, extension_version_info->build_id, ZEND_EXTENSION_BUILD_ID);
/* See http://support.microsoft.com/kb/190351 */
-#ifdef PHP_WIN32
+#ifdef ZEND_WIN32
+ fflush(stderr);
+#endif
+ DL_UNLOAD(handle);
+ return FAILURE;
+ } else if (zend_get_extension(new_extension->name)) {
+ fprintf(stderr, "Cannot load %s - it was already loaded\n", new_extension->name);
+/* See http://support.microsoft.com/kb/190351 */
+#ifdef ZEND_WIN32
fflush(stderr);
+ #endif
+ DL_UNLOAD(handle);
+ return FAILURE;
+ } else if (zend_get_extension(new_extension->name)) {
+ fprintf(stderr, "Cannot load %s - extension already loaded\n", new_extension->name);
+ /* See http://support.microsoft.com/kb/190351 */
+ #ifdef PHP_WIN32
+ fflush(stderr);
#endif
DL_UNLOAD(handle);
return FAILURE;