Skip to content

Commit 97d192b

Browse files
committed
Reindent ext/mysqli tests
Reindent ext/mysqli tests on PHP-7.4, so they match with the indentation on PHP-8.0. Otherwise merging test changes across branches is very unpleasant.
1 parent 706241f commit 97d192b

File tree

290 files changed

+4857
-4857
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

290 files changed

+4857
-4857
lines changed

ext/mysqli/tests/002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
5353
printf("[c001] [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());
5454

5555
if (!mysqli_query($link, "DROP TABLE IF EXISTS test_fetch_null"))
56-
printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
56+
printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
5757

5858
mysqli_close($link);
5959
?>

ext/mysqli/tests/003.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
7979
printf("[c001] [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());
8080

8181
if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_result"))
82-
printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
82+
printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
8383

8484
mysqli_close($link);
8585
?>

ext/mysqli/tests/004.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
5757
printf("[c001] [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());
5858

5959
if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch"))
60-
printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
60+
printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
6161

6262
mysqli_close($link);
6363
?>

ext/mysqli/tests/005.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
4747
printf("[c001] [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());
4848

4949
if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch"))
50-
printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
50+
printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
5151

5252
mysqli_close($link);
5353
?>

ext/mysqli/tests/006.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
5252
printf("[c001] [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());
5353

5454
if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch"))
55-
printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
55+
printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
5656

5757
mysqli_close($link);
5858
?>

ext/mysqli/tests/007.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
5252
printf("[c001] [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());
5353

5454
if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch"))
55-
printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
55+
printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
5656

5757
mysqli_close($link);
5858
?>

ext/mysqli/tests/008.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
5252
printf("[c001] [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());
5353

5454
if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch"))
55-
printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
55+
printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
5656

5757
mysqli_close($link);
5858
?>

ext/mysqli/tests/009.phpt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
mysqli fetch bigint values (ok to fail with 4.1.x)
33
--SKIPIF--
44
<?php
5-
if (PHP_INT_SIZE == 8) {
6-
echo 'skip test valid only for 32bit systems';
7-
exit;
8-
}
9-
require_once('skipif.inc');
10-
require_once('skipifconnectfailure.inc');
5+
if (PHP_INT_SIZE == 8) {
6+
echo 'skip test valid only for 32bit systems';
7+
exit;
8+
}
9+
require_once('skipif.inc');
10+
require_once('skipifconnectfailure.inc');
1111
?>
1212
--FILE--
1313
<?php
@@ -85,10 +85,10 @@ if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
8585
printf("[c001] [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());
8686

8787
if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch"))
88-
printf("[002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
88+
printf("[002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
8989

9090
if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch_uint"))
91-
printf("[002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
91+
printf("[002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
9292

9393
mysqli_close($link);
9494
?>

ext/mysqli/tests/010.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
5555
printf("[c001] [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());
5656

5757
if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_fetch"))
58-
printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
58+
printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
5959

6060
mysqli_close($link);
6161
?>

ext/mysqli/tests/011.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
5252
printf("[c001] [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());
5353

5454
if (!mysqli_query($link, "DROP TABLE IF EXISTS test_bind_result"))
55-
printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
55+
printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
5656

5757
mysqli_close($link);
5858
?>

0 commit comments

Comments
 (0)