|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51617 PDO PGSQL still broken against PostGreSQL < 7.4
Submitted: 2010-04-20 20:41 UTC Modified: 2010-04-21 03:19 UTC
From: wdierkes at 5dollarwhitebox dot org Assigned: felipe (profile)
Status: Closed Package: PDO related
PHP Version: 5.2.13 OS: Redhat Enterprise Linux 3
Private report: No CVE-ID: None
 [2010-04-20 20:41 UTC] wdierkes at 5dollarwhitebox dot org
RELATED (but all closed):

This is not resolved entirely.  As of 5.2.13 PHP will build against PQSQL < 7.4 but it does not function properly:

[wdierkes@esx02-bjd-el3-i386 wdierkes]$ php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/' - /usr/lib/php/modules/ undefined symbol: PQfreemem in Unknown on line 0
PHP 5.2.13 (cli) (built: Apr  8 2010 16:08:42) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies

The issue was partially fixed in ext/pgsql/pgsql.c but the same fix was not applied to pdo_pgsql.  The attached patch should resolve the issue.

Test script:
php -v


php-5.2.13-PQfreemem.patch (last revision 2010-04-20 18:43 UTC by wdierkes at 5dollarwhitebox dot org)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-21 03:18 UTC]
Automatic comment from SVN on behalf of felipe
Log: - Fixed bug #51617 (PDO PGSQL still broken against PostGreSQL &lt; 7.4)
# Just in this branch, as config.m4 in the 5_3 branch states that 7.4+ is required
 [2010-04-21 03:19 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: felipe
 [2010-04-21 03:19 UTC]
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

Fixed in 5.2 branch.

Thanks for the patch.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 18 05:01:28 2024 UTC