]> granicus.if.org Git - php/commitdiff
Fixed bug #41845 (pgsql extension does not compile with PostgreSQL <7.4)
authorIlia Alshanetsky <iliaa@php.net>
Mon, 2 Jul 2007 15:37:43 +0000 (15:37 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 2 Jul 2007 15:37:43 +0000 (15:37 +0000)
NEWS
ext/pgsql/pgsql.c

diff --git a/NEWS b/NEWS
index 64e6e8a456a8eaf4c0e2a2d9b7e955b0da49228a..278661aed48f01ddede14f392690106a07d34118 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -41,6 +41,8 @@ PHP                                                                        NEWS
 
 - Fixed bug #41867 (getName is broken). (Rob)
 - Fixed bug #41865 (fputcsv(): 2nd parameter is not optional). (Jani)
+- Fixed bug #41845 (pgsql extension does not compile with PostgreSQL <7.4).
+  (Ilia)
 - Fixed bug #41813 (segmentation fault when using string offset as an object).
   (judas dot iscariote at gmail dot com, Tony)
 - Fixed bug #41795 (checkdnsrr does not support DNS_TXT type). 
@@ -56,7 +58,7 @@ PHP                                                                        NEWS
   (Chris Jones, Tony)
 - Fixed bug #41698 (float parameters truncated to integer in prepared 
   statements). (Ilia)
-- Fixed bug #41692 (ArrayObject shows weird behaviour in respect to 
+- Fixed bug #41692 (ArrayObject shows weird behavior in respect to 
   inheritance). (Tony)
 - Fixed bug #41686 (Omitting length param in array_slice not possible).
   (Ilia)
index 73e25af3653fbb92df6a09d389809959c63522c6..eadcc1ce147db65c5e76c2836346b3375362de82 100644 (file)
 
 #define CHECK_DEFAULT_LINK(x) if ((x) == -1) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "No PostgreSQL link opened yet"); }
 
+#ifndef HAVE_PQFREEMEM
+#define PGfreemem free
+#endif
+
 ZEND_DECLARE_MODULE_GLOBALS(pgsql)
 static PHP_GINIT_FUNCTION(pgsql);