php.net |  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: wdierkes at 5dollarwhitebox dot org
New email:
PHP Version: OS:

 

 [2010-04-20 20:41 UTC] wdierkes at 5dollarwhitebox dot org
Description:
------------
RELATED (but all closed):

http://bugs.php.net/search.php?search_for=pqfreemem&boolean=0&limit=30&order_by=&direction=DESC&cmd=display&status=All&bug_type=All&php_os=&phpver=&assign=&author_email=&bug_age=0&bug_updated=0



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/pdo_pgsql.so' - /usr/lib/php/modules/pdo_pgsql.so: 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


Patches

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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-21 03:18 UTC] felipe@php.net
Automatic comment from SVN on behalf of felipe
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=298240
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] felipe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: felipe
 [2010-04-21 03:19 UTC] felipe@php.net
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
http://snaps.php.net/.
 
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: Tue Dec 03 17:01:29 2024 UTC