php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5807 PHP cannot count open database connections
Submitted: 2000-07-27 10:38 UTC Modified: 2000-11-02 03:42 UTC
From: borz_off at rdw dot ru Assigned:
Status: Closed Package: PostgreSQL related
PHP Version: 4.0 Latest CVS (27/07/2000) OS: Linux 2.2.15 (RedHat 6.2)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: borz_off at rdw dot ru
New email:
PHP Version: OS:

 

 [2000-07-27 10:38 UTC] borz_off at rdw dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-02 03:42 UTC] kara@php.net
Connections are bound to processes / threads, phpinfo() only counts the connections of one thread/process.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 05:01:42 2025 UTC