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/bug47189.phpt |
--TEST-- Bug #47189 (Multiple oci_fetch_all calls) --SKIPIF-- <?php $target_dbs = array('oracledb' => true, 'timesten' => false); // test runs on these DBs: different error handling for this undefined behavior require(dirname(__FILE__).'/skipif.inc'); ?> --FILE-- <?php require(dirname(__FILE__).'/connect.inc'); echo "Test 1\n"; $s = oci_parse($c, "select * from dual"); oci_execute($s); oci_fetch_all($s, $rs, 0, -1, OCI_FETCHSTATEMENT_BY_ROW); var_dump($rs); oci_fetch_all($s, $rs1, 0, -1, OCI_FETCHSTATEMENT_BY_ROW); var_dump($rs1); echo "Test 2\n"; $s = oci_parse($c, "select * from dual"); oci_execute($s); oci_fetch_all($s, $rs, 0, 1, OCI_FETCHSTATEMENT_BY_ROW); var_dump($rs); oci_fetch_all($s, $rs1, 0, 1, OCI_FETCHSTATEMENT_BY_ROW); var_dump($rs1); ?> ===DONE=== <?php exit(0); ?> --EXPECTF-- Test 1 array(1) { [0]=> array(1) { ["DUMMY"]=> string(1) "X" } } array(0) { } Test 2 array(1) { [0]=> array(1) { ["DUMMY"]=> string(1) "X" } } Warning: oci_fetch_all(): ORA-01002: %s in %s on line %d array(0) { } ===DONE===y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`