ID:               41845
 Updated by:       [EMAIL PROTECTED]
 Reported By:      bilal at revolutionhosting dot net
-Status:           Open
+Status:           Assigned
 Bug Type:         PostgreSQL related
 Operating System: Fedora Core 1, RHEL 3
 PHP Version:      5.2.3
-Assigned To:      
+Assigned To:      iliaa


Previous Comments:
------------------------------------------------------------------------

[2007-06-28 18:30:35] bilal at revolutionhosting dot net

Description:
------------
Same as closed Bug #40418 for PHP 5.2.1 (PQfreemem does not exist prior
to Postgresql 7.4).
<http://bugs.php.net/bug.php?id=40418>

This bug exists in PHP 5.2.3.

It seems to have either been never completely fixed in
ext/pgsql/pgsql.c, or perhaps reverted in PHP 5.2.3.
The ext/pgsql/config.m4 does now check whether PQfreemem is available,
but ext/pgsql/pgsql.c continues to use PQfreemem regardless, causing PHP
to be unable to load the pgsql extension on systems with PostgreSQL
version less than 7.4 (Fedora Core 1, RHEL 3).

Patch from Bug #40418 should work.

Reproduce code:
---------------
Build PHP 5.2.3 with ./configure --with-pgsql=shared
Install and attempt to run PHP (ex. "php -m").

Expected result:
----------------
No errors shown, extensions (including "pgsql") listed.

Actual result:
--------------
PHP emits a warning that it is unable to load pgsql.so:
"undefined symbol: PQfreemem in Unknown on line 0"


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=41845&edit=1

Reply via email to