summaryrefslogtreecommitdiffstats
path: root/php-odbc.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-03-08 07:54:01 +0100
committerRemi Collet <fedora@famillecollet.com>2015-03-08 07:54:01 +0100
commit902380c4327684e86ea09cab854640c5b954fd12 (patch)
tree3667b199007526175d6d7b0ffd42eed19beee8a6 /php-odbc.patch
parent712c6fe33a3f148783528a2eee1fd739443abd55 (diff)
PHP 5.6.7RC1 (as SCL)
Diffstat (limited to 'php-odbc.patch')
-rw-r--r--php-odbc.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/php-odbc.patch b/php-odbc.patch
new file mode 100644
index 0000000..12bff99
--- /dev/null
+++ b/php-odbc.patch
@@ -0,0 +1,40 @@
+From 89f86119d612d539a4ec189aff4d3c077cb608a1 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@php.net>
+Date: Sun, 8 Mar 2015 07:34:51 +0100
+Subject: [PATCH] Fix odbc build as shared
+
+Broken since a41aa46759d20e23af92df00b917ca66c6102412
+---
+ ext/odbc/config.m4 | 9 +++++----
+ 1 file changed, 5 insertions(+), 4 deletions(-)
+
+diff --git a/ext/odbc/config.m4 b/ext/odbc/config.m4
+index f79c461..9555efd 100644
+--- a/ext/odbc/config.m4
++++ b/ext/odbc/config.m4
+@@ -99,6 +99,11 @@ AC_DEFUN([PHP_ODBC_FIND_EMPRESS_BCS_LIBS],[
+ dnl
+ dnl configure options
+ dnl
++
++PHP_ARG_WITH(odbcver,,
++[ --with-odbcver[=HEX] Force support for the passed ODBC version. A hex number is expected, default 0x0300.
++ Use the special value of 0 to prevent an explicit ODBCVER to be defined. ], 0x0300)
++
+ if test -z "$ODBC_TYPE"; then
+ PHP_ARG_WITH(adabas,,
+ [ --with-adabas[=DIR] Include Adabas D support [/usr/local]])
+@@ -490,10 +495,6 @@ PHP_ARG_WITH(dbmaker,,
+ fi
+ fi
+
+-PHP_ARG_WITH(odbcver,,
+-[ --with-odbcver[=HEX] Force support for the passed ODBC version. A hex number is expected, default 0x0300.
+- Use the special value of 0 to prevent an explicit ODBCVER to be defined. ], 0x0300)
+-
+ if test "no" != "$PHP_ODBCVER"; then
+ if test "$PHP_ODBCVER" != "0"; then
+ AC_DEFINE_UNQUOTED(ODBCVER, $PHP_ODBCVER, [ The highest supported ODBC version ])
+--
+2.1.4
+