summaryrefslogtreecommitdiff
path: root/ext/yaz
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2003-02-28 07:17:47 +0000
committerfoobar <sniper@php.net>2003-02-28 07:17:47 +0000
commit282512abea2e79a6c7f5562009a1a3751fce557e (patch)
tree6bedccaa568114e58541c3300c141fc535bfdd85 /ext/yaz
parent40a3530d8e555dec2a594939ccb7995e6ca25f76 (diff)
downloadphp-git-282512abea2e79a6c7f5562009a1a3751fce557e.tar.gz
YAZ 2.0 or later is required now.
Diffstat (limited to 'ext/yaz')
-rw-r--r--ext/yaz/config.m46
-rw-r--r--ext/yaz/php_yaz.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/ext/yaz/config.m4 b/ext/yaz/config.m4
index 3b5c8b176f..1ca755c2b5 100644
--- a/ext/yaz/config.m4
+++ b/ext/yaz/config.m4
@@ -23,13 +23,13 @@ if test "$PHP_YAZ" != "no"; then
AC_DEFINE(HAVE_YAZ,1,[Whether you have YAZ])
. $yazconfig
- dnl Check version (1.9 or greater required)
+ dnl Check version (2.0 or greater required)
AC_MSG_CHECKING([for YAZ version])
yaz_version=`echo $YAZVERSION | awk 'BEGIN { FS = "."; } { printf "%d", ($1 * 1000 + $2) * 1000 + $3;}'`
- if test "$yaz_version" -ge 1009000; then
+ if test "$yaz_version" -ge 2000000; then
AC_MSG_RESULT([$YAZVERSION])
else
- AC_MSG_ERROR([YAZ version 1.9 or later required.])
+ AC_MSG_ERROR([YAZ version 2.0 or later required.])
fi
for c in $YAZLIB; do
diff --git a/ext/yaz/php_yaz.c b/ext/yaz/php_yaz.c
index 17c2250156..fc5d982508 100644
--- a/ext/yaz/php_yaz.c
+++ b/ext/yaz/php_yaz.c
@@ -33,9 +33,9 @@
#include <yaz/yaz-version.h>
#ifndef YAZ_VERSIONL
-#error YAZ version 1.9 or later must be used.
-#elif YAZ_VERSIONL < 0x010900
-#error YAZ version 1.9 or later must be used.
+#error YAZ version 2.0 or later must be used.
+#elif YAZ_VERSIONL < 0x020000
+#error YAZ version 2.0 or later must be used.
#endif
#ifdef PHP_WIN32