From:             jcuello at sitrack dot com
Operating system: Windows XP SP2
PHP version:      4.4.7
PHP Bug Type:     Informix related
Bug description:  Persistent connections

Description:
------------
Every call to ifx_pconnect() opens a connection to the database server
instead of using the connection previously created. This situation take
place when the gap between each call is about 20 seconds or more. We
monitor the connections to the database server with the informix command
'onstat -g ses'. The connections remains open until the apache server is
stopped.


Reproduce code:
---------------
<?php
    $conn_id = ifx_pconnect ("[EMAIL PROTECTED]", "user", "pass");
?>

Expected result:
----------------
I expect the script doesn't open a new connection to the database server
if it find a connection already established. I expect it uses the
connection already open.

Actual result:
--------------
The script open a new connection to the server if the gap between each
call to the script is about 20 seconds or more. The connections remains
open until de apache server is stopped.

-- 
Edit bug report at http://bugs.php.net/?id=42204&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42204&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42204&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42204&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=42204&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=42204&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=42204&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=42204&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=42204&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=42204&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=42204&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=42204&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=42204&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=42204&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42204&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=42204&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=42204&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=42204&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42204&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=42204&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=42204&r=mysqlcfg

Reply via email to