PHP 4.0 Bug #9879: ISAPI Not handleing connections to MySQL correctly
| From: | peter at wowpages dot com | Date: | Tue, 20 Mar 2001 19:28:51 +0000 |
| Subject: | PHP 4.0 Bug #9879: ISAPI Not handleing connections to MySQL correctly | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-49544@lists.php.net to get a copy of this message | ||
From: peter@wowpages.com
Operating system: Win NT
PHP version: 4.0.4pl1
PHP Bug Type: MySQL related
Bug description: ISAPI Not handleing connections to MySQL correctly
When running php as an isapi filter, php connects and works properly, but does not reuse persistant
connections so that each page view results in many, many open connections to MySQL server, which
ulitmately results in errors because of too many connections. We're connecting with code such
as this:
$db_link = mysql_pconnect (DB_HOST, USERNAME, PASSWORD)
or die ("Could not connect to database");
Where DB_HOST, USERNAME, and PASSWORD are defined as constants. The php version is 4.4pl1, installed
with the windows installer, using the php4isapa.dll from the zipfile.
--
Edit Bug report at: http://bugs.php.net/?id=9879&edit=1