com php-src: Add new test section. Diff with query 5 is still to be resolved: ext/pdo_oci/tests/bug57702.phpt
| From: | Christopher Jones | Date: | Thu, 09 Jul 2015 23:49:10 +0000 |
| Subject: | com php-src: Add new test section. Diff with query 5 is still to be resolved: ext/pdo_oci/tests/bug57702.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-87881@lists.php.net to get a copy of this message | ||
Commit: e79433743a7fa71f5bd1e04f40bda4cf1081b7d9
Author: Christopher Jones <christopher.jones@oracle.com> Fri, 10 Jul 2015 09:49:10
+1000
Parents: a3c54dd1b705878ec520e2f649f8edc760759fb5
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e79433743a7fa71f5bd1e04f40bda4cf1081b7d9
Log:
Add new test section. Diff with query 5 is still to be resolved
Changed paths:
M ext/pdo_oci/tests/bug57702.phpt
Diff:
diff --git a/ext/pdo_oci/tests/bug57702.phpt b/ext/pdo_oci/tests/bug57702.phpt
index 0060bb0..d0abc6f 100644
--- a/ext/pdo_oci/tests/bug57702.phpt
+++ b/ext/pdo_oci/tests/bug57702.phpt
@@ -81,7 +81,6 @@ while ($stmt->fetch(PDO::FETCH_BOUND)) {
var_dump($clob1);
var_dump($clob2);
}
-print "done\n";
////////////////////
@@ -123,6 +122,22 @@ for ($i = 0; $i < count($a); $i++) {
var_dump(stream_get_contents($a[$i][1]));
}
+////////////////////
+
+echo "\nSixth Query\n";
+
+$db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, false); // Let's use streams
+
+$a = array();
+$i = 0;
+foreach($db->query("select data1 as d4_1, data2 as d4_2 from bug57702 order by id") as
$row) {
+ $a[$i][0] = $row['d4_1'];
+ $a[$i][1] = $row['d4_2'];
+ var_dump(stream_get_contents($a[$i][0]));
+ var_dump(stream_get_contents($a[$i][1]));
+ $i++;
+}
+
// Cleanup
$query = "drop table bug57702";
$stmt = $db->prepare($query);
@@ -149,7 +164,6 @@ string(11) "row 1 col 1"
string(11) "row 1 col 2"
string(11) "row 2 col 1"
string(11) "row 2 col 2"
-done
Fourth Query
string(11) "row 1 col 1"
@@ -162,4 +176,10 @@ string(11) "row 2 col 1"
string(11) "row 2 col 2"
string(11) "row 2 col 1"
string(11) "row 2 col 2"
+
+Sixth Query
+string(11) "row 1 col 1"
+string(11) "row 1 col 2"
+string(11) "row 2 col 1"
+string(11) "row 2 col 2"
done