summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schlüter <johannes@php.net>2008-12-01 23:30:21 +0000
committerJohannes Schlüter <johannes@php.net>2008-12-01 23:30:21 +0000
commit4b24c89a9df3a1534ad75232942f0fe81c1f8b91 (patch)
treef0e1ff6f1384c9b76f633e8229eebfa3bc765b49
parent1ece804688971fd75c274cbfa5c398438cc1548a (diff)
downloadphp-git-4b24c89a9df3a1534ad75232942f0fe81c1f8b91.tar.gz
MFH: hash_insert was renamed in MySQL 5.0 so we can safely use recode and mysql
with recent libmysql versions [DOC]
-rw-r--r--NEWS2
-rw-r--r--ext/recode/config9.m47
2 files changed, 8 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 9d928322a8..29448eedfc 100644
--- a/NEWS
+++ b/NEWS
@@ -35,6 +35,8 @@ PHP NEWS
- Fixed invalid calls to free when internal fileinfo magic file is used. (Scott)
- Fixed memory leak inside wddx_add_vars() function. (Felipe)
- Synced changes from libmagic 4.26 to bundled libmagic. (Scott)
+- Fixed check in recode extension to allow builing of recode and mysql
+ extensions when using a recent libmysql. (Johannes)
- Fixed bug #46711 (cURL curl_setopt leaks memory in foreach loops).
(magicaltux [at] php [dot] net)
diff --git a/ext/recode/config9.m4 b/ext/recode/config9.m4
index 2065f6c6e9..66df50e221 100644
--- a/ext/recode/config9.m4
+++ b/ext/recode/config9.m4
@@ -5,7 +5,12 @@ dnl
dnl Check for extensions with which Recode can not work
if test "$PHP_RECODE" != "no"; then
test "$PHP_IMAP" != "no" && recode_conflict="$recode_conflict imap"
- test "$PHP_MYSQL" != "no" && recode_conflict="$recode_conflict mysql"
+
+ if test -n "$MYSQL_LIBNAME"; then
+ PHP_CHECK_LIBRARY($MYSQL_LIBNAME, hash_insert, [
+ recode_conflict="$recode_conflict mysql"
+ ])
+ fi
if test -n "$recode_conflict"; then
AC_MSG_ERROR([recode extension can not be configured together with:$recode_conflict])