PHP 4.0 Bug #5807 Updated: PHP cannot count open database connections

From: Date: Thu, 02 Nov 2000 08:42:31 +0000
Subject: PHP 4.0 Bug #5807 Updated: PHP cannot count open database connections
Groups: php.dev 
Request: Send a blank email to php-dev+get-36752@lists.php.net to get a copy of this message
ID: 5807 Updated by: kara Reported By: borz_off@rdw.ru Status: Closed Bug Type: PostgreSQL related Assigned To: Comments: Connections are bound to processes / threads, phpinfo() only counts the connections of one thread/process. Previous Comments: --------------------------------------------------------------------------- [2000-07-27 10:38:30] borz_off@rdw.ru phpinfo() reports the number of open connections incorrectly. It keeps on telling that there are only 1 or 2 of them, while there are dozens of postgres processes in memory. When I try to use persistent connections to PostgreSQL database, PHP just opens new ones instead of reusing the already open one. Because of this, PHP doesn't honour constraints from php.ini and keeps opening connections until PostgreSQL reaches its connection limit and refuses to accept more. I'm using PostgreSQL 7.0, Apache 1.3.12 rus/PL29.5 PHP was configured with the following options: --with-apache=../apache_1.3.12rusPL29.5 --with-mod_charset --with-pgsql=/usr --with-zlib=/usr --with-config-file-path=/etc --without-mysql --disable-session --enable-track-vars here is a part of my php.ini which deals with PostgreSQL [PostgresSQL] pgsql.allow_persistent = On pgsql.max_persistent = 5 pgsql.max_links = 10 --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=5807

« previous php.dev (#36752) next »