cvs: php-src(PHP_5_3) /ext/oci8/tests bug47189.phpt

From: Date: Mon, 09 Mar 2009 21:20:02 +0000
Subject: cvs: php-src(PHP_5_3) /ext/oci8/tests bug47189.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-56471@lists.php.net to get a copy of this message
sixd Mon Mar 9 21:20:02 2009 UTC Added files: (Branch: PHP_5_3) /php-src/ext/oci8/tests bug47189.phpt Log: MFH: New test for oci_fetch_all http://cvs.php.net/viewvc.cgi/php-src/ext/oci8/tests/bug47189.phpt?view=markup&rev=1.1 Index: php-src/ext/oci8/tests/bug47189.phpt +++ php-src/ext/oci8/tests/bug47189.phpt --TEST-- Bug #47189 (Multiple oci_fetch_all calls) --SKIPIF-- <?php if (!extension_loaded('oci8')) die ("skip no oci8 extension"); ?> --FILE-- <?php require(dirname(__FILE__).'/connect.inc'); $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); $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-- array(1) { [0]=> array(1) { [u"DUMMY"]=> unicode(1) "X" } } array(0) { } array(1) { [0]=> array(1) { [u"DUMMY"]=> unicode(1) "X" } } Warning: oci_fetch_all(): ORA-01002: %s in %s on line %d array(0) { } ===DONE===

« previous php.cvs (#56471) next »