From:             bilal at revolutionhosting dot net
Operating system: Fedora Core 1, RHEL 3
PHP version:      5.2.3
PHP Bug Type:     PostgreSQL related
Bug description:  PHP pgsql Extension does not load with PostgreSQL < 7.4 
because of PQfreemem

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 bug report at http://bugs.php.net/?id=41845&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=41845&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=41845&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=41845&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=41845&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=41845&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=41845&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=41845&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=41845&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=41845&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=41845&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=41845&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=41845&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=41845&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=41845&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=41845&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=41845&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=41845&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=41845&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=41845&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=41845&r=mysqlcfg

Reply via email to