Skip to content

Commit 6559df8

Browse files
committed
Trim trailing whitespace in *.phpt
1 parent 206ef0a commit 6559df8

File tree

8 files changed

+23
-23
lines changed

8 files changed

+23
-23
lines changed

tests/002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ InterBase: connect, close and pconnect
66
<?php
77

88
require("interbase.inc");
9-
9+
1010
ibase_connect($test_base);
1111
out_table("test1");
1212
ibase_close();

tests/003.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ InterBase: misc sql types (may take a while)
77

88
require("interbase.inc");
99
ibase_connect($test_base);
10-
10+
1111
ibase_query(
1212
"create table test3 (
1313
iter integer not null,
@@ -129,7 +129,7 @@ InterBase: misc sql types (may take a while)
129129
$q = ibase_query('SELECT 1 AS id, 2 AS id, 3 AS id, 4 AS id, 5 AS id, 6 AS id, 7 AS id, 8 AS id, 9 AS id,
130130
10 AS id, 11 AS id, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22 FROM rdb$database');
131131
var_dump(ibase_fetch_assoc($q));
132-
132+
133133
ibase_close();
134134
echo "end of test\n";
135135
?>

tests/004.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ InterBase: BLOB test
66
<?php
77

88
require("interbase.inc");
9-
9+
1010
$link = ibase_connect($test_base);
1111

1212
ibase_query(
@@ -38,7 +38,7 @@ InterBase: BLOB test
3838
$row = ibase_fetch_object($q);
3939
$bl_h = ibase_blob_open($row->V_BLOB);
4040

41-
$blob = '';
41+
$blob = '';
4242
while($piece = ibase_blob_get($bl_h, 1 + rand() % 1024))
4343
$blob .= $piece;
4444
if($blob != $blob_str)
@@ -47,7 +47,7 @@ InterBase: BLOB test
4747

4848
$bl_h = ibase_blob_open($link,$row->V_BLOB);
4949

50-
$blob = '';
50+
$blob = '';
5151
while($piece = ibase_blob_get($bl_h, 100 * 1024))
5252
$blob .= $piece;
5353
if($blob != $blob_str)
@@ -108,7 +108,7 @@ InterBase: BLOB test
108108
$row = ibase_fetch_object($q);
109109
ibase_commit();
110110
ibase_close();
111-
111+
112112
$link = ibase_connect($test_base);
113113
ibase_blob_echo($link, $row->V_BLOB);
114114
ibase_free_result($q);

tests/006.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ InterBase: binding (may take a while)
66
<?php
77

88
require("interbase.inc");
9-
9+
1010
ibase_connect($test_base);
11-
11+
1212
ibase_query(
1313
"create table test6 (
1414
iter integer,
@@ -171,7 +171,7 @@ InterBase: binding (may take a while)
171171
echo "VARCHAR fail\n";
172172
}
173173
ibase_free_result($sel);
174-
174+
175175
} /*for iter*/
176176

177177
echo "prepare and exec insert\n";

tests/007.phpt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ InterBase: array handling
66
<?php
77

88
require("interbase.inc");
9-
9+
1010
ibase_connect($test_base);
11-
11+
1212
ibase_query(
1313
"create table test7 (
1414
iter integer,
@@ -29,15 +29,15 @@ InterBase: array handling
2929
ini_set('ibase.timestampformat',"%m/%d/%Y %H:%M:%S");
3030

3131
echo "insert\n";
32-
32+
3333
for ($i = 1; $i <= 10; ++$i) {
3434
for ($j = 1; $j <= 10; ++$j) {
3535
for ($k = 1; $k <= 10; ++$k) {
3636
$v_multi[$i][$j][$k] = $i * $j * $k;
3737
}
3838
}
3939
}
40-
40+
4141
for($iter = 0; $iter < 3; $iter++) {
4242

4343
/* prepare data */
@@ -62,7 +62,7 @@ InterBase: array handling
6262
$v_smallint[$i] = rand_number(5) % 32767;
6363
$v_varchar[$i] = rand_str(1000);
6464
}
65-
65+
6666
ibase_query("insert into test7
6767
(iter,v_multi,v_char,v_date,v_decimal,v_double,v_float,
6868
v_integer,v_numeric,v_smallint,v_varchar)
@@ -73,7 +73,7 @@ InterBase: array handling
7373

7474
$row = ibase_fetch_object($sel,IBASE_FETCH_ARRAYS);
7575
for ($i = 1; $i <= 10; ++$i) {
76-
76+
7777
if(strncmp($row->V_CHAR[$i],$v_char[$i],strlen($v_char[$i])) != 0) {
7878
echo " CHAR[$i] fail:\n";
7979
echo " in: ".$v_char[$i]."\n";
@@ -124,7 +124,7 @@ InterBase: array handling
124124
}/* for($iter) */
125125

126126
echo "select\n";
127-
127+
128128
$sel = ibase_query("SELECT v_multi[5,5,5],v_multi[10,10,10] FROM test7 WHERE iter = 0");
129129
print_r(ibase_fetch_row($sel));
130130
ibase_free_result($sel);

tests/008.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
--TEST--
22
InterBase: event handling
33
--SKIPIF--
4-
<?php
4+
<?php
55
if (PHP_OS == "WINNT") echo "skip";
6-
include("skipif.inc");
6+
include("skipif.inc");
77
?>
88
--FILE--
99
<?php

tests/bug45373.phpt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Bug #45373 (php crash on query with errors in params)
66
<?php
77

88
require("interbase.inc");
9-
9+
1010
$db = ibase_connect($test_base);
1111

1212

@@ -16,11 +16,11 @@ Bug #45373 (php crash on query with errors in params)
1616
$r = ibase_execute($q, 1, 'test table not created with isql');
1717
var_dump(ibase_fetch_assoc($r));
1818
ibase_free_result($r);
19-
19+
2020
$r = ibase_execute($q, 1, 'test table not created with isql', 1);
2121
var_dump(ibase_fetch_assoc($r));
2222
ibase_free_result($r);
23-
23+
2424
$r = ibase_execute($q, 1);
2525
var_dump(ibase_fetch_assoc($r));
2626

tests/ibase_drop_db_001.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ require("interbase.inc");
1010
unlink($file = tempnam('/tmp',"php_ibase_test"));
1111

1212

13-
$db = ibase_query(IBASE_CREATE,
13+
$db = ibase_query(IBASE_CREATE,
1414
sprintf("CREATE SCHEMA '%s' USER '%s' PASSWORD '%s' DEFAULT CHARACTER SET %s",$file,
1515
$user, $password, ($charset = ini_get('ibase.default_charset')) ? $charset : 'NONE'));
1616

0 commit comments

Comments
 (0)