From: Operating system: Redhat Enterprise Linux 3 PHP version: 5.2.13 Package: PDO related Bug Type: Bug Bug description:PDO PGSQL still broken against PostGreSQL < 7.4
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: [wdier...@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 -- Edit bug report at http://bugs.php.net/bug.php?id=51617&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51617&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51617&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51617&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=51617&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51617&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=51617&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=51617&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=51617&r=needscript Try newer version: http://bugs.php.net/fix.php?id=51617&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=51617&r=support Expected behavior: http://bugs.php.net/fix.php?id=51617&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=51617&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=51617&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=51617&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51617&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=51617&r=dst IIS Stability: http://bugs.php.net/fix.php?id=51617&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=51617&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=51617&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=51617&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=51617&r=mysqlcfg