svn: /php/php-src/branches/PHP_5_2/ NEWS ext/pdo_pgsql/config.m4 ext/pdo_pgsql/php_pdo_pgsql_int.h
| From: | Felipe Pena | Date: | Wed, 21 Apr 2010 01:18:19 +0000 |
| Subject: | svn: /php/php-src/branches/PHP_5_2/ NEWS ext/pdo_pgsql/config.m4 ext/pdo_pgsql/php_pdo_pgsql_int.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-62312@lists.php.net to get a copy of this message | ||
felipe Wed, 21 Apr 2010 01:18:19 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=298240
Log:
- Fixed bug #51617 (PDO PGSQL still broken against PostGreSQL < 7.4)
# Just in this branch, as config.m4 in the 5_3 branch states that 7.4+ is required
Bug: http://bugs.php.net/51617 (Open) PDO PGSQL still broken
against PostGreSQL < 7.4
Changed paths:
U php/php-src/branches/PHP_5_2/NEWS
U php/php-src/branches/PHP_5_2/ext/pdo_pgsql/config.m4
U php/php-src/branches/PHP_5_2/ext/pdo_pgsql/php_pdo_pgsql_int.h
Modified: php/php-src/branches/PHP_5_2/NEWS
===================================================================
--- php/php-src/branches/PHP_5_2/NEWS 2010-04-20 23:31:13 UTC (rev 298239)
+++ php/php-src/branches/PHP_5_2/NEWS 2010-04-21 01:18:19 UTC (rev 298240)
@@ -12,6 +12,8 @@
- Fixed a NULL pointer dereference when processing invalid XML-RPC
requests (Fixes CVE-2010-0397, bug #51288). (Raphael Geissert)
+- Fixed bug #51617 (PDO PGSQL still broken against PostGreSQL < 7.4).
+ (Felipe, wdierkes at 5dollarwhitebox dot org)
- Fixed bug #51615 (PHP crash with wrong HTML in SimpleXML). (Felipe)
- Fixed bug #51609 (pg_copy_to: Invalid results when using fourth parameter).
(Felipe)
Modified: php/php-src/branches/PHP_5_2/ext/pdo_pgsql/config.m4
===================================================================
--- php/php-src/branches/PHP_5_2/ext/pdo_pgsql/config.m4 2010-04-20 23:31:13 UTC (rev 298239)
+++ php/php-src/branches/PHP_5_2/ext/pdo_pgsql/config.m4 2010-04-21 01:18:19 UTC (rev 298240)
@@ -92,6 +92,7 @@
AC_CHECK_LIB(pq, PQtransactionStatus,AC_DEFINE(HAVE_PGTRANSACTIONSTATUS,1,[PostgreSQL 7.4 or
later]))
AC_CHECK_LIB(pq, PQunescapeBytea,AC_DEFINE(HAVE_PQUNESCAPEBYTEA,1,[PostgreSQL 7.4 or later]))
AC_CHECK_LIB(pq, PQExecParams,AC_DEFINE(HAVE_PQEXECPARAMS,1,[PostgreSQL 7.4 or later]))
+ AC_CHECK_LIB(pq, PQfreemem, AC_DEFINE(HAVE_PQFREEMEM,1,[PostgreSQL 7.4 or later]))
AC_CHECK_LIB(pq, PQresultErrorField,AC_DEFINE(HAVE_PQRESULTERRORFIELD,1,[PostgreSQL 7.4 or
later]))
AC_CHECK_LIB(pq, pg_encoding_to_char,AC_DEFINE(HAVE_PGSQL_WITH_MULTIBYTE_SUPPORT,1,[Whether libpq
is compiled with --enable-multibyte]))
Modified: php/php-src/branches/PHP_5_2/ext/pdo_pgsql/php_pdo_pgsql_int.h
===================================================================
--- php/php-src/branches/PHP_5_2/ext/pdo_pgsql/php_pdo_pgsql_int.h 2010-04-20 23:31:13 UTC (rev
298239)
+++ php/php-src/branches/PHP_5_2/ext/pdo_pgsql/php_pdo_pgsql_int.h 2010-04-21 01:18:19 UTC (rev
298240)
@@ -27,6 +27,10 @@
#include <libpq/libpq-fs.h>
#include <php.h>
+#ifndef HAVE_PQFREEMEM
+#define PQfreemem free
+#endif
+
#define PHP_PDO_PGSQL_CONNECTION_FAILURE_SQLSTATE "08006"
typedef struct {