You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fprintf(stderr, "%s doesn't appear to be a valid Zend extension\n", path);
77
+
if (!silent) {
78
+
fprintf(stderr, "%s doesn't appear to be a valid Zend extension\n", path);
79
+
}
78
80
/* See http://support.microsoft.com/kb/190351 */
79
81
#ifdefZEND_WIN32
80
82
fflush(stderr);
81
83
#endif
82
-
DL_UNLOAD(handle);
84
+
if (unload_on_failure) {
85
+
DL_UNLOAD(handle);
86
+
}
83
87
returnFAILURE;
84
88
}
85
89
86
90
/* allow extension to proclaim compatibility with any Zend version */
87
91
if (extension_version_info->zend_extension_api_no!=ZEND_EXTENSION_API_NO&&(!new_extension->api_no_check||new_extension->api_no_check(ZEND_EXTENSION_API_NO) !=SUCCESS)) {
88
92
if (extension_version_info->zend_extension_api_no>ZEND_EXTENSION_API_NO) {
89
-
fprintf(stderr, "%s requires Zend Engine API version %d.\n"
90
-
"The Zend Engine API version %d which is installed, is outdated.\n\n",
91
-
new_extension->name,
92
-
extension_version_info->zend_extension_api_no,
93
-
ZEND_EXTENSION_API_NO);
93
+
if (!silent) {
94
+
fprintf(stderr, "%s requires Zend Engine API version %d.\n"
95
+
"The Zend Engine API version %d which is installed, is outdated.\n\n",
0 commit comments