RE: [PHP-DEV] PHP 4.0 Bug #5807: PHP cannot count open database connections
| From: | Howard Cohodas | Date: | Thu, 27 Jul 2000 11:14:58 +0000 |
| Subject: | RE: [PHP-DEV] PHP 4.0 Bug #5807: PHP cannot count open database connections | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-26460@lists.php.net to get a copy of this message | ||
I observe the same problem on our system.
Our setup...
WinNT4 SP6a build 1381
WebSitePro/2.5.4
MsSQL 3.23.21-beta
PHP Version 4.0.1pl2
with Zend Optimizer v0.99
PHP Server API ISAPI
Howard A. Cohodas
Design Knowledge Technologies Inc.
Phone: (011)(330)492-9900
FAX: (011)(330)492-1100
otfGIF Encoder: http://www.dkt.com/otfGIF
-----Original Message-----
From: borz_off@rdw.ru [mailto:borz_off@rdw.ru]
Sent: Thursday, July 27, 2000 4:39 AM
To: php-dev@lists.php.net
Subject: [PHP-DEV] PHP 4.0 Bug #5807: PHP cannot count open database
connections
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
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
For additional commands, e-mail: php-dev-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net