From: foobar Date: Fri, 28 Feb 2003 07:17:47 +0000 (+0000) Subject: YAZ 2.0 or later is required now. X-Git-Tag: RELEASE_0_5~695 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=282512abea2e79a6c7f5562009a1a3751fce557e;p=php YAZ 2.0 or later is required now. --- 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 #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