ID: 9562
Updated by: zeev
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Reproduceable crash
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Your fix was incorporated to the CVS, and will be a part of PHP 4.0.6.  Thanks!

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

[2001-03-05 10:11:09] [EMAIL PROTECTED]
Script for reproducing bug:

while(!($con=@pg_pconnect("dbname=web")))
{
   sleep(1);
}

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:  
%s",PQerrorMessage(pgsql));
    efree(hashed_details);
    RETURN_FALSE;
}


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



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9562&edit=2


-- 
PHP Development Mailing List <http://www.php.net/>
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