projects
/
m6w6
/
ext-pq
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
prepare v2.2.3
[m6w6/ext-pq]
/
tests
/
crash_result_iterator.phpt
1
--TEST--
2
crash result iterator
3
--SKIPIF--
4
<?php
5
include "_skipif.inc";
6
?>
7
--FILE--
8
<?php
9
echo "Test\n";
10
11
include "_setup.inc";
12
13
$conn = new pq\Connection(PQ_DSN);
14
15
$sql = "
16
SELECT id
17
FROM generate_series(1,3) id
18
ORDER BY id ASC
19
LIMIT 5
20
";
21
22
foreach ($conn->exec($sql) as $row) {
23
var_dump($row);
24
}
25
?>
26
===DONE===
27
--EXPECT--
28
Test
29
array(1) {
30
[0]=>
31
int(1)
32
}
33
array(1) {
34
[0]=>
35
int(2)
36
}
37
array(1) {
38
[0]=>
39
int(3)
40
}
41
===DONE===