summaryrefslogtreecommitdiff
path: root/Zend/zend_extensions.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-06-22 18:47:39 +0000
committerAndi Gutmans <andi@php.net>2000-06-22 18:47:39 +0000
commita536df5327afcc9d1c52db363dac3d2ff226a288 (patch)
treecd36e765c95fa721e1010fea2f8fa3ade009f345 /Zend/zend_extensions.c
parent3998034acb775549f0a6c60f349230c2b0b03a52 (diff)
downloadphp-git-a536df5327afcc9d1c52db363dac3d2ff226a288.tar.gz
- Change API version and make the error messages more meaningful.
Diffstat (limited to 'Zend/zend_extensions.c')
-rw-r--r--Zend/zend_extensions.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/Zend/zend_extensions.c b/Zend/zend_extensions.c
index 7d8fc5f499..c735af26f8 100644
--- a/Zend/zend_extensions.c
+++ b/Zend/zend_extensions.c
@@ -65,17 +65,18 @@ int zend_load_extension(char *path)
}
if (extension_version_info->zend_extension_api_no > ZEND_EXTENSION_API_NO) {
- fprintf(stderr, "%s requires Zend version %s or later\n"
- "Current version %s, API version %d\n",
+ fprintf(stderr, "%s requires Zend Engine API version %d\n"
+ "The installed Zend Engine API version is %d\n",
new_extension->name,
- extension_version_info->required_zend_version,
- ZEND_VERSION,
+ extension_version_info->required_api_no,
ZEND_EXTENSION_API_NO);
DL_UNLOAD(handle);
return FAILURE;
} else if (extension_version_info->zend_extension_api_no < ZEND_EXTENSION_API_NO) {
/* we may be able to allow for downwards compatability in some harmless cases. */
- fprintf(stderr, "%s is outdated (API version %d, current version %d)\n"
+ fprintf(stderr, "%s designed to be used with the Zend Engine API %d is outdated\n"
+ "It requires a more recent version of the Zend Engine\n"
+ "The installed Zend Engine API version is %d\n"
"Contact %s at %s for a later version of this module.\n",
new_extension->name,
extension_version_info->zend_extension_api_no,