summaryrefslogtreecommitdiff
path: root/ext/standard/dl.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-03-13 06:00:36 +0000
committerAndi Gutmans <andi@php.net>2000-03-13 06:00:36 +0000
commit70eb0c78f8cf35ef1f3542741927a01a717e9b5a (patch)
treedd577ccbe47638efd18b62c53110546db9104695 /ext/standard/dl.c
parentda4f3edac4b99ce681bebb75da81a8d0046311bb (diff)
downloadphp-git-70eb0c78f8cf35ef1f3542741927a01a717e9b5a.tar.gz
- Also check module API number
Diffstat (limited to 'ext/standard/dl.c')
-rw-r--r--ext/standard/dl.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/ext/standard/dl.c b/ext/standard/dl.c
index b9bfb288e5..651b84e665 100644
--- a/ext/standard/dl.c
+++ b/ext/standard/dl.c
@@ -132,14 +132,15 @@ void php_dl(pval *file,int type,pval *return_value)
RETURN_FALSE;
}
module_entry = get_module();
- if ((module_entry->zend_debug != ZEND_DEBUG) || (module_entry->zts != USING_ZTS)) {
+ if ((module_entry->zend_debug != ZEND_DEBUG) || (module_entry->zts != USING_ZTS)
+ || (module_entry->zend_api != ZEND_MODULE_API_NO)) {
php_error(E_CORE_WARNING,
"%s: Unable to initialize module\n"
- "Module compiled with debug=%d, thread-safety=%d\n"
- "PHP compiled with debug=%d, thread-safety=%d\n"
+ "Module compiled with debug=%d, thread-safety=%d module API=%d\n"
+ "PHP compiled with debug=%d, thread-safety=%d module API=%d\n"
"These options need to match\n",
- module_entry->name, module_entry->zend_debug, module_entry->zts,
- ZEND_DEBUG, USING_ZTS);
+ module_entry->name, module_entry->zend_debug, module_entry->zts, module_entry->zend_api,
+ ZEND_DEBUG, USING_ZTS, ZEND_MODULE_API_NO);
DL_UNLOAD(handle);
RETURN_FALSE;
}