@@ -4,23 +4,23 @@ Bug #53503 (mysqli::query returns false after successful LOAD DATA query)
44mysqli
55--SKIPIF--
66<?php
7- require_once ( ' skipifconnectfailure .inc ') ;
7+ require_once ' connect .inc ' ;
88
9- if (!$ link = my_mysqli_connect ($ host , $ user , $ passwd , $ db , $ port , $ socket ))
10- die ("skip Cannot connect to MySQL " );
9+ if (!$ link = @my_mysqli_connect ($ host , $ user , $ passwd , $ db , $ port , $ socket )) {
10+ die (sprintf ("skip Can't connect to MySQL Server - [%d] %s " , mysqli_connect_errno (), mysqli_connect_error ()));
11+ }
1112
12- include_once ( "local_infile_tools.inc " ) ;
13+ include_once "local_infile_tools.inc " ;
1314if ($ msg = check_local_infile_support ($ link , $ engine ))
1415 die (sprintf ("skip %s, [%d] %s " , $ msg , $ link ->errno , $ link ->error ));
1516
1617mysqli_close ($ link );
17-
1818?>
1919--INI--
2020mysqli.allow_local_infile=1
2121--FILE--
2222<?php
23- require_once ( "connect.inc " ) ;
23+ require_once "connect.inc " ;
2424
2525 if (!$ link = my_mysqli_connect ($ host , $ user , $ passwd , $ db , $ port , $ socket )) {
2626 printf ("[001] Connect failed, [%d] %s \n" , mysqli_connect_errno (), mysqli_connect_error ());
@@ -50,7 +50,7 @@ mysqli.allow_local_infile=1
5050?>
5151--CLEAN--
5252<?php
53- require_once ( 'connect.inc ' ) ;
53+ require_once 'connect.inc ' ;
5454
5555if (!$ link = my_mysqli_connect ($ host , $ user , $ passwd , $ db , $ port , $ socket )) {
5656 printf ("[clean] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s \n" ,
0 commit comments