php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /opt/php-7.0.1/ext/oci8/tests/ |
files >> //opt/php-7.0.1/ext/oci8/tests/drcp_pconn_close1.phpt |
--TEST-- DRCP: oci_pconnect() with oci_close() and oci8.old_oci_close_semantics ON --SKIPIF-- <?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?> --INI-- oci8.old_oci_close_semantics=1 oci8.connection_class=test --FILE-- <?php require dirname(__FILE__)."/details.inc"; // Test will open a persistent connection // Close the connection // Open another connection // With oci_close() being a no-op, the same conneciton will be returned echo "This is with a OCI_PCONNECT\n"; var_dump($conn1 = oci_pconnect($user,$password,$dbase)); $rn1 = (int)$conn1; oci_close($conn1); // Open another connection var_dump($conn2 = oci_pconnect($user,$password,$dbase)); $rn2 = (int)$conn2; oci_close($conn2); // Compare the resource numbers if ($rn1 === $rn2) echo "Both connections share a resource : OK \n"; else echo "Both connections are different : NOT OK \n"; echo "Done\n"; ?> --EXPECTF-- This is with a OCI_PCONNECT resource(%d) of type (oci8 persistent connection) resource(%d) of type (oci8 persistent connection) Both connections share a resource : OK Doney~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`