Bug #1701: PHP not closing invalid persistent connections

From: Date: Tue, 13 Jul 1999 14:23:57 +0000
Subject: Bug #1701: PHP not closing invalid persistent connections
Groups: php.dev 
Request: Send a blank email to php-dev+get-8437@lists.php.net to get a copy of this message
From: q@onthenet.com.au Operating system: FreeBSD 3.2-RELEASE PHP version: 3.0.11 PHP Bug Type: mSQL related Bug description: PHP not closing invalid persistent connections When using PHP as a module in apache, and connecting to mSQL using local domain sockets. If a connection is made using msql_pconnect() and the mSQL database goes away, when it returns all subsiquent mSQL operations will fail when using this persistent connection. The only way to fix this situation is to restart apache. The problem is that upon calling msql_pconnect() after mSQL has been restarted the existing (now invalid) handle is returned. Either support should be added to detect the termination of the connection (if this is possible) or an msql_pclose() function should be added so that a persistent connection can be explicitely closed when it becomes invalid.

« previous php.dev (#8437) next »