Skip to content

Commit 9982f67

Browse files
committed
Trim trailing whitespace in *.phpt
1 parent 28af08d commit 9982f67

File tree

9 files changed

+63
-63
lines changed

9 files changed

+63
-63
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/005.phpt

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

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

1212
@ibase_query("create table test5 (i integer)");
@@ -15,7 +15,7 @@ InterBase: transactions
1515

1616

1717
echo "default transaction:\n";
18-
18+
1919
/*
2020
Difference between default and other transactions:
2121
default committed when you call ibase_close().
@@ -30,14 +30,14 @@ ibase_blob_create(), ibase_blob_import() first time.
3030
/*
3131
simple default transaction test without ibase_trans()
3232
*/
33-
33+
3434
ibase_connect($test_base);
3535

3636
echo "empty table\n";
3737

3838
/* out_table call ibase_query()
3939
and ibase_query() start default transaction */
40-
out_table("test5");
40+
out_table("test5");
4141

4242
/* in default transaction context */
4343
ibase_query("insert into test5 (i) values (1)");
@@ -49,13 +49,13 @@ simple default transaction test without ibase_trans()
4949

5050
echo "after rollback table empty again\n";
5151
out_table("test5"); /* started new default transaction */
52-
52+
5353
ibase_query("insert into test5 (i) values (2)");
5454

5555
ibase_close(); /* commit here! */
56-
56+
5757
ibase_connect($test_base);
58-
58+
5959
echo "one row\n";
6060
out_table("test5");
6161
ibase_close();
@@ -66,30 +66,30 @@ First open transaction on link will be default.
6666
$tr_def_l1 may be omitted. All queryes without link and trans
6767
parameters run in this context
6868
*/
69-
69+
7070
$link_def = ibase_connect($test_base);
71-
71+
7272
$tr_def_l1 = ibase_trans(IBASE_READ); /* here transaction start */
73-
73+
7474
/* all default */
7575
$res = ibase_query("select * from test5");
76-
76+
7777
echo "one row\n";
7878
out_result($res,"test5");
7979

8080
ibase_free_result($res);
8181

8282
/* specify transaction context... */
8383
$res = ibase_query($tr_def_l1, "select * from test5");
84-
84+
8585
echo "one row... again.\n";
8686
out_result($res,"test5");
8787

8888
ibase_free_result($res);
89-
89+
9090
/* specify default transaction on link */
9191
$res = ibase_query($link_def, "select * from test5");
92-
92+
9393
echo "one row.\n";
9494
out_result($res,"test5");
9595

@@ -98,110 +98,110 @@ parameters run in this context
9898
ibase_rollback($link_def); /* just for example */
9999

100100
ibase_close();
101-
101+
102102
/*
103103
three transaction on default link
104104
*/
105105
ibase_connect($test_base);
106-
106+
107107
$res = ibase_query("select * from test5");
108-
108+
109109
echo "one row\n";
110110
out_result($res,"test5");
111111

112112
ibase_free_result($res);
113113

114114
$tr_1 = ibase_query("SET TRANSACTION");
115115
$tr_2 = ibase_query("SET TRANSACTION READ ONLY");
116-
$tr_3 = ibase_trans(IBASE_READ+IBASE_COMMITTED+IBASE_REC_VERSION+IBASE_WAIT);
117-
$tr_4 = ibase_trans(IBASE_READ+IBASE_COMMITTED+IBASE_REC_NO_VERSION+IBASE_NOWAIT);
118-
116+
$tr_3 = ibase_trans(IBASE_READ+IBASE_COMMITTED+IBASE_REC_VERSION+IBASE_WAIT);
117+
$tr_4 = ibase_trans(IBASE_READ+IBASE_COMMITTED+IBASE_REC_NO_VERSION+IBASE_NOWAIT);
118+
119119
/* insert in first transaction context... */
120120
/* as default */
121121
ibase_query("insert into test5 (i) values (3)");
122122
/* specify context */
123123
ibase_query($tr_1, "insert into test5 (i) values (4)");
124-
124+
125125
$res = ibase_query("select * from test5");
126-
126+
127127
echo "two rows\n";
128128
out_result($res,"test5");
129129

130130
ibase_free_result($res);
131-
131+
132132
$res = ibase_query($tr_1, "select * from test5");
133-
133+
134134
echo "two rows again\n";
135135
out_result($res,"test5");
136136

137137
ibase_free_result($res);
138-
138+
139139
ibase_commit();
140140
ibase_commit($tr_1);
141141

142142
$tr_1 = ibase_trans();
143143
ibase_query($tr_1, "insert into test5 (i) values (5)");
144-
144+
145145
/* tr_2 is IBASE_READ + IBASE_CONCURRENCY + IBASE_WAIT */
146146
$res = ibase_query($tr_2, "select * from test5");
147-
147+
148148
echo "one row in second transaction\n";
149149
out_result($res,"test5");
150150

151151
ibase_free_result($res);
152152

153153
/* tr_3 is IBASE_COMMITTED + IBASE_REC_VERSION + IBASE_WAIT */
154154
$res = ibase_query($tr_3, "select * from test5");
155-
155+
156156
echo "three rows in third transaction\n";
157157
out_result($res,"test5");
158158

159159
ibase_free_result($res);
160160

161161
/* tr_4 IBASE_COMMITTED + IBASE_REC_NO_VERSION + IBASE_NOWAIT */
162162
$res = ibase_query($tr_4, "select * from test5");
163-
163+
164164
echo "three rows in fourth transaction with deadlock\n";
165165
out_result_trap_error($res,"test5");
166166

167-
ibase_free_result($res);
168-
167+
ibase_free_result($res);
168+
169169
ibase_rollback($tr_1);
170170
ibase_close();
171171
/*
172172
transactions on second link
173173
*/
174174
$link_1 = ibase_pconnect($test_base);
175175
$link_2 = ibase_pconnect($test_base);
176-
176+
177177
$tr_1 = ibase_trans(IBASE_DEFAULT, $link_2); /* this default transaction also */
178178
$tr_2 = ibase_trans(IBASE_COMMITTED, $link_2);
179-
179+
180180
$res = ibase_query($tr_1, "select * from test5");
181-
181+
182182
echo "three rows\n";
183183
out_result($res,"test5");
184184

185185
ibase_free_result($res);
186186

187187
ibase_query($tr_1, "insert into test5 (i) values (5)");
188-
188+
189189
$res = ibase_query($tr_1, "select * from test5");
190-
190+
191191
echo "four rows\n";
192192
out_result($res,"test5");
193193

194194
ibase_free_result($res);
195-
195+
196196
ibase_commit($tr_1);
197-
197+
198198
$res = ibase_query($tr_2, "select * from test5");
199-
199+
200200
echo "four rows again\n";
201201
out_result($res,"test5");
202202

203203
ibase_free_result($res);
204-
204+
205205
ibase_close($link_1);
206206
ibase_close($link_2);
207207

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

0 commit comments

Comments
 (0)