summaryrefslogtreecommitdiff
path: root/ext/pgsql/tests/80_bug27597.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pgsql/tests/80_bug27597.phpt')
-rw-r--r--ext/pgsql/tests/80_bug27597.phpt18
1 files changed, 9 insertions, 9 deletions
diff --git a/ext/pgsql/tests/80_bug27597.phpt b/ext/pgsql/tests/80_bug27597.phpt
index 5e28258570..92f0d81800 100644
--- a/ext/pgsql/tests/80_bug27597.phpt
+++ b/ext/pgsql/tests/80_bug27597.phpt
@@ -11,29 +11,29 @@ require_once(__DIR__ . '/config.inc');
$dbh = @pg_connect($conn_str);
if (!$dbh) {
- die ("Could not connect to the server");
+ die ("Could not connect to the server");
}
@pg_query("DROP TABLE id");
pg_query("CREATE TABLE id (id INT)");
for ($i=0; $i<4; $i++) {
- pg_query("INSERT INTO id (id) VALUES ($i)");
+ pg_query("INSERT INTO id (id) VALUES ($i)");
}
function xi_fetch_array($res, $type = PGSQL_ASSOC) {
- $a = pg_fetch_array($res, NULL, $type) ;
- return $a ;
+ $a = pg_fetch_array($res, NULL, $type) ;
+ return $a ;
}
$res = pg_query("SELECT * FROM id");
$i = 0; // endless-loop protection
while($row = xi_fetch_array($res)) {
- print_r($row);
- if ($i++ > 4) {
- echo "ENDLESS-LOOP";
- exit(1);
- }
+ print_r($row);
+ if ($i++ > 4) {
+ echo "ENDLESS-LOOP";
+ exit(1);
+ }
}
pg_close($dbh);