PDO PGSQL still broken against PostGreSQL < 7.4
| 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
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 commits
[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