@@ -15,47 +15,47 @@ mysqli_check_skip_test();
15
15
<?php
16
16
require_once dirname (__DIR__ ) . "/test_setup/test_helpers.inc " ;
17
17
18
- $ link = default_mysqli_connect ();
18
+ $ link = default_mysqli_connect ();
19
19
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='' " );
22
22
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
+ );
36
36
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) " );
39
39
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 );
44
44
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 ;
50
49
}
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 );
53
53
54
- var_dump ($ test );
54
+ var_dump ($ test );
55
55
56
- mysqli_stmt_close ($ stmt );
57
- mysqli_close ($ link );
58
- print "done! " ;
56
+ mysqli_stmt_close ($ stmt );
57
+ mysqli_close ($ link );
58
+ print "done! " ;
59
59
?>
60
60
--CLEAN--
61
61
<?php
0 commit comments