|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-04-12 12:57 UTC] ilya dot gruzinov at gmail dot com
Description:
------------
I make 2 connections. After every connect i run query on new link.
Then i free statment from results and try run query for second connections and get warning.
Reproduce code:
---------------
<?php
$db1 = oci_pconnect ("ilya", "ilya", "cc10");
$sth1 = OCIParse($db1, "select * from test");
$db2 = oci_pconnect ("ilya", "ilya", "cc10");
$sth2 = OCIParse($db2, "select * from test");
ocifreestatement($sth1);
ocifreestatement($sth2);
$sth3 = OCIParse($db2, "select * from test");
?>
Expected result:
----------------
_empty_
Actual result:
--------------
Warning: ociparse(): 3 is not a valid oci8 connection resource in /home/shagren/public_html/oracle10/test2.php on line 12
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 04:00:02 2025 UTC |
more correct example, with ociexecute <?php $db1 = oci_pconnect ("ilya", "ilya", "cc10"); $sth1 = OCIParse($db1, "select * from test"); OCIExecute($sth1); $db2 = oci_pconnect ("ilya", "ilya", "cc10"); $sth2 = OCIParse($db2, "select * from test"); OCIExecute($sth2); ocifreestatement($sth1); ocifreestatement($sth2); $sth3 = OCIParse($db2, "select * from test"); ?> PS: problem only with persistent connection and php 5.1.2, with 5.1.1 i have not problem