Skip to content

Commit d9b478c

Browse files
Unindent ext/mysqli/tests/bind_fetch/bigint_types.phpt
Co-authored-by: Kamil Tekiela <tekiela246@gmail.com>
1 parent f17942f commit d9b478c

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

ext/mysqli/tests/bind_fetch/bigint_types.phpt

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -15,47 +15,47 @@ mysqli_check_skip_test();
1515
<?php
1616
require_once dirname(__DIR__) . "/test_setup/test_helpers.inc";
1717

18-
$link = default_mysqli_connect();
18+
$link = default_mysqli_connect();
1919

20-
// To get consistent result without depending on the DB version/setup
21-
mysqli_query($link, "SET sql_mode=''");
20+
// To get consistent result without depending on the DB version/setup
21+
mysqli_query($link, "SET sql_mode=''");
2222

23-
mysqli_query(
24-
$link,
25-
"CREATE TABLE test_bind_fetch_integers_big(
26-
c1 bigint default 5,
27-
c2 bigint,
28-
c3 bigint not NULL,
29-
c4 bigint unsigned,
30-
c5 bigint unsigned,
31-
c6 bigint unsigned,
32-
c7 bigint unsigned,
33-
c8 bigint unsigned
34-
) ENGINE=" . get_default_db_engine()
35-
);
23+
mysqli_query(
24+
$link,
25+
"CREATE TABLE test_bind_fetch_integers_big(
26+
c1 bigint default 5,
27+
c2 bigint,
28+
c3 bigint not NULL,
29+
c4 bigint unsigned,
30+
c5 bigint unsigned,
31+
c6 bigint unsigned,
32+
c7 bigint unsigned,
33+
c8 bigint unsigned
34+
) ENGINE=" . get_default_db_engine()
35+
);
3636

37-
mysqli_query($link, "INSERT INTO test_bind_fetch_integers_big (c2,c3,c4,c5,c6,c7,c8)
38-
VALUES (-23,4.0,33333333333333,0,-333333333333,99.9,1234)");
37+
mysqli_query($link, "INSERT INTO test_bind_fetch_integers_big (c2,c3,c4,c5,c6,c7,c8)
38+
VALUES (-23,4.0,33333333333333,0,-333333333333,99.9,1234)");
3939

40-
$stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch_integers_big");
41-
mysqli_stmt_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7, $c8);
42-
mysqli_stmt_execute($stmt);
43-
mysqli_stmt_fetch($stmt);
40+
$stmt = mysqli_prepare($link, "SELECT * FROM test_bind_fetch_integers_big");
41+
mysqli_stmt_bind_result($stmt, $c1, $c2, $c3, $c4, $c5, $c6, $c7, $c8);
42+
mysqli_stmt_execute($stmt);
43+
mysqli_stmt_fetch($stmt);
4444

45-
if (mysqli_get_server_version($link) < 50000) {
46-
// 4.1 is faulty and will return big number for $c6
47-
if ($c6 == "18446743740376218283") {
48-
$c6 = 0;
49-
}
45+
if (mysqli_get_server_version($link) < 50000) {
46+
// 4.1 is faulty and will return big number for $c6
47+
if ($c6 == "18446743740376218283") {
48+
$c6 = 0;
5049
}
51-
$c8 = 4567;// change this to test how mysqli/mysqlnd handles is_ref changing
52-
$test = array($c1,$c2,$c3,$c4,$c5,$c6,$c7,$c8);
50+
}
51+
$c8 = 4567;// change this to test how mysqli/mysqlnd handles is_ref changing
52+
$test = array($c1,$c2,$c3,$c4,$c5,$c6,$c7,$c8);
5353

54-
var_dump($test);
54+
var_dump($test);
5555

56-
mysqli_stmt_close($stmt);
57-
mysqli_close($link);
58-
print "done!";
56+
mysqli_stmt_close($stmt);
57+
mysqli_close($link);
58+
print "done!";
5959
?>
6060
--CLEAN--
6161
<?php

0 commit comments

Comments
 (0)