php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18347 ibase_pconnect() spawn connections to InterBase
Submitted: 2002-07-15 03:54 UTC Modified: 2003-11-18 11:03 UTC
From: michael at mediacom dot ru Assigned:
Status: Not a bug Package: InterBase related
PHP Version: 4.2.1 OS: nt4 sp6a
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: michael at mediacom dot ru
New email:
PHP Version: OS:

 

 [2002-07-15 03:54 UTC] michael at mediacom dot ru
When I use script with ibase_pconnect(), it spawn InterBase connections, if period of http requests over approx. 15 seconds.
I use php4apache.dll with Apache 1.3.22(win32) InterBase(Firebird 1.0) build 796

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-15 03:57 UTC] sniper@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

 [2002-07-15 04:43 UTC] michael at mediacom dot ru
My script calls ibase_pconnect("127.0.0.1:/Database/test.gdb", "SYSDBA", "masterkey"). I expected that php reuse persistent connection to InterBase. But if time from last script executing is over 15 seconds - php spawn new InterBase connection.
 [2002-07-15 06:27 UTC] sniper@php.net
What settings you have for interbase in php.ini?
Are you sure it's not interbase closing the connection?
Check it's settings too..

 [2002-07-15 08:15 UTC] michael at mediacom dot ru
Settings for interbase in php.ini? Noting. I didn't found description for those in PHP Manual.
Interbase is not closing connection - thay are not closing. PHP spawned new connections in ibase_pconnect() function, when there are available persistent connections.
 [2002-07-15 20:23 UTC] sniper@php.net
The persistent connection does not mean that you have ONE single connection to the database, but you have one connection from each httpd child. Are you sure this is not what is happening? ie. if the child you hit does not have the connection established yet, it will be created.

 [2002-07-16 02:04 UTC] michael at mediacom dot ru
Yes! You almost right.
I have looked in httpd.conf and understood that reason in settings of KeepAlive (KeepAliveTimeout & ThreadsPerChild) of my Apache server.

Thank for support.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC