php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39523 ibase_pconnect does not reconnect when a connection is dropped
Submitted: 2006-11-15 10:18 UTC Modified: 2006-11-23 01:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: jacques@php.net Assigned:
Status: No Feedback Package: InterBase related
PHP Version: 5.2.0 OS: Redhat Linux RHEL4
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: jacques@php.net
New email:
PHP Version: OS:

 

 [2006-11-15 10:18 UTC] jacques@php.net
Description:
------------
Using the interbase/firebird database, when using persistent connections, it does not reconnect to the database when the link is dropped (leased-line goes down / manually killing the firebird server process on the database server).  It just returns the database link to a dead connection.

Using a DB wrapper / ibase_pconnect natively, they both have the same problem.

Reproduce code:
---------------
Mail me for the source code.

Expected result:
----------------
A new link should be established prior to returning the persistent connection.

Actual result:
--------------
$result->getMessage() returns "DB Error: unknown error"

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-15 10:22 UTC] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.


 [2006-11-15 10:55 UTC] jacques@php.net
Busy making a stripped down test case.
 [2006-11-15 12:19 UTC] jacques@php.net
This is the error message that returns via a PHP warning:

PHP Warning:  Unknown: Unable to complete network request to host "*snipped*". Error writing data to the connection. Broken pipe  in Unknown on line 0
 [2006-11-23 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC