From:             [EMAIL PROTECTED]
Operating system: Solaris, probably also others
PHP version:      4.0.4pl1
PHP Bug Type:     Reproduceable crash
Bug description:  Memory leak in ext/pgsql/pgsql.c

Script for reproducing bug:


The system must be under heavy load for bug to become apparent.

Suggested correction in ext/pgsql/pgsql.c (added lines are marked with ***):

if (pgsql==NULL || PQstatus(pgsql)==CONNECTION_BAD) {
***   if(pgsql) {
***      PQfinish(pgsql);
***      pgsql=0;
***   }
    php_error(E_WARNING,"Unable to connect to PostgreSQL server:  

Edit Bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to