|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-05-22 19:37 UTC] jreed at myers dot com
[2006-05-29 11:00 UTC] tony2001@php.net
[2006-08-22 19:39 UTC] jreed at myers dot com
[2006-08-22 19:45 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 07:00:01 2025 UTC |
Description: ------------ If you open a persistent connection on one page, then on another page you open a file using fopen, thus creating a file resource, and then attempt to obtain a persistent oci8 connection using ociplogon(), the returned resource is not a valid oci8 connection resource. If you then attempt to use that connection resource you get the following warning: "supplied resource is not a valid oci8 connection resource" If you close the file using fclose() prior to calling ociplogon() then everything works fine. This problem was introduced in v5.1.3 and continues in 5.1.4. Reproduce code: --------------- page1.html <?php putenv("TNS_ADMIN=/etc/myers"); $conn_ora = ociplogon("portal", "portal123", "eng2"); ocilogoff($conn_ora); header("Location: page2.html"); ?> page2.html <?php $fp = fopen('/tmp/test.log','a'); $conn_ora = ociplogon($username, $password, $db); $sql = "select * from dual"; $stmt = ociparse($conn_ora, $sql); ?> Expected result: ---------------- Page redirects to second page and get a blank page. Actual result: -------------- Warning: ociparse(): supplied resource is not a valid oci8 connection resource in /www/myers/sites/portal/main/orders/test2.html on line 7 Warning: ocilogoff(): supplied resource is not a valid oci8 connection resource in /www/myers/sites/portal/main/orders/test2.html on line 8