Patch php-5.2.13-PQfreemem.patch for PDO related Bug #51617
Patch version 2010-04-20 18:43 UTC
Return to Bug #51617 |
Download this patch
Patch Revisions:
Developer: wdierkes@5dollarwhitebox.org
[wdierkes@esx02-bjd-el3-i386 buildroot]$ cat SOURCES/php-5.2.13-PQfreemem.patch
--- php-5.2.13/ext/pdo_pgsql/pgsql_driver.c.orig 2010-01-12 06:46:54.000000000 -0600
+++ php-5.2.13/ext/pdo_pgsql/pgsql_driver.c 2010-04-20 13:23:09.000000000 -0500
@@ -40,6 +40,10 @@
#include "php_pdo_pgsql_int.h"
#include "zend_exceptions.h"
+#ifndef HAVE_PQFREEMEM
+#define PQfreemem free
+#endif
+
static char * _pdo_pgsql_trim_message(const char *message, int persistent)
{
register int i = strlen(message)-1;
--- php-5.2.13/ext/pdo_pgsql/pgsql_statement.c.orig 2010-01-03 03:23:27.000000000 -0600
+++ php-5.2.13/ext/pdo_pgsql/pgsql_statement.c 2010-04-20 13:23:32.000000000 -0500
@@ -44,6 +44,10 @@
#define TEXTOID 25
#define OIDOID 26
+#ifndef HAVE_PQFREEMEM
+#define PQfreemem free
+#endif
+
static int pgsql_stmt_dtor(pdo_stmt_t *stmt TSRMLS_DC)
{
pdo_pgsql_stmt *S = (pdo_pgsql_stmt*)stmt->driver_data;
|