Skip to content

Commit fb302f3

Browse files
committed
Sync ODBC version
When passing `--without-odbcver` or `--with-odbcver=no` to configure, the ODBC version has been designed to be highest supported version (0x0350). This syncs the behavior with the Windows build system. Additionally, the 5th argument "no" of PHP_ARG_WITH fixes the behavior when building shared odbc extension and makes it a bit less error prone when moving the code around.
1 parent b3f259d commit fb302f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/odbc/config.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ PHP_ARG_WITH([odbcver],,
9696
[Force support for the passed ODBC version. A hex number is expected,
9797
default 0x0350. Use the special value of 0 to prevent an explicit ODBCVER to
9898
be defined.])],
99-
[0x0350])
99+
[0x0350],[no])
100100

101101
if test -z "$ODBC_TYPE"; then
102102
PHP_ARG_WITH([adabas],,
@@ -439,7 +439,7 @@ if test "no" != "$PHP_ODBCVER"; then
439439
AC_DEFINE_UNQUOTED(ODBCVER, $PHP_ODBCVER, [ The highest supported ODBC version ])
440440
fi
441441
else
442-
AC_DEFINE(ODBCVER, 0x0300, [ The highest supported ODBC version ])
442+
AC_DEFINE(ODBCVER, 0x0350, [ The highest supported ODBC version ])
443443
fi
444444

445445
dnl Extension setup

0 commit comments

Comments
 (0)