From:
Operating system: Windows 7
PHP version: 5.3.5
Package: OCI8 related
Bug Type: Bug
Bug description:Persistent connections
Description:
------------
I would aspect to see TCP connection between the apache and the Oracle
server to die, after 10seconds the script ends. What i see, is that the
connections stays ESTABLISHED until i restart apache.
//php.ini changes
oci8.max_persistent = 2
oci8.persistent_timeout = 10
oci8.ping_interval = -1
Test script:
---------------
$sql = "SELECT nome FROM f_pessoa";
$conn = oci_pconnect($user_oracle, $password_db_oracle,
$database_oracle);
$stid = oci_parse($conn, $sql);
$r = oci_execute($stid, OCI_DEFAULT);
if (!$r) {
$e = oci_error($stid);
echo htmlentities($e['message']);
exit;
}
while ($row = oci_fetch_array($stid, OCI_RETURN_NULLS)) {
foreach ($row as $item) {
$table_2 .= ($item?htmlentities($item):' ');
}
}
oci_close($conn);
oci_free_statement($stid);
Expected result:
----------------
I would expect that TCP connections will die 10s after the script ends.
Actual result:
--------------
The TCP connection between the apache and the Oracle Server stays
ESTABLISHED for ever...
--
Edit bug report at http://bugs.php.net/bug.php?id=53962&edit=1
--
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=53962&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=53962&r=trysnapshot53
Try a snapshot (trunk):
http://bugs.php.net/fix.php?id=53962&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=53962&r=fixed
Fixed in SVN and need be documented:
http://bugs.php.net/fix.php?id=53962&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=53962&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=53962&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=53962&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=53962&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=53962&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=53962&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=53962&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=53962&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=53962&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53962&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=53962&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=53962&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=53962&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=53962&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=53962&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=53962&r=mysqlcfg