php-src/ext/pgsql/tests/bug76548.phpt
Fabien Villepinte a555cc0b3d Clean DONE tags from tests
Remove most of the `===DONE===` tags and its variations.
Keep `===DONE===` if the test output otherwise becomes empty.

Closes GH-4872.
2019-11-07 21:31:47 +01:00

22 lines
405 B
PHP

--TEST--
Bug #76548 pg_fetch_result did not fetch the next row
--SKIPIF--
<?php include("skipif.inc"); ?>
--FILE--
<?php
include('config.inc');
$conn = pg_connect($conn_str);
$result = pg_query($conn, 'SELECT v FROM (VALUES (1), (2), (3)) AS t(v)');
while ($value = pg_fetch_result($result, 0)) {
var_dump($value); // should be 1, 2 then 3.
}
?>
--EXPECT--
string(1) "1"
string(1) "2"
string(1) "3"