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

From: Date: Thu, 27 Jul 2000 08:38:30 +0000
Subject: PHP 4.0 Bug #5807: PHP cannot count open database connections
Groups: php.dev 
Request: Send a blank email to php-dev+get-26438@lists.php.net to get a copy of this message
From: borz_off@rdw.ru Operating system: Linux 2.2.15 (RedHat 6.2) PHP version: 4.0 Latest CVS (27/07/2000) PHP Bug Type: PostgreSQL related Bug description: PHP cannot count open database connections 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

« previous php.dev (#26438) next »