|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-02-08 19:32 UTC] johannes@php.net
-Status: Open
+Status: Bogus
[2011-02-08 19:32 UTC] johannes@php.net
[2011-02-08 19:46 UTC] tiago dot duarte at softconcept dot pt
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 02:00:01 2025 UTC |
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...