Skip to content

Commit 66eb96e

Browse files
committed
Silence potential connection failure in SKIPIF section
Otherwise the test will be reported as BORKED.
1 parent 266667c commit 66eb96e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/mysqli/tests/mysqli_fork.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if (!function_exists('posix_getpid'))
1212
die("skip POSIX functions not available");
1313

1414
require_once 'connect.inc';
15-
if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
15+
if (!$link = @my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
1616
die(sprintf("skip Can't connect to MySQL Server - [%d] %s", mysqli_connect_errno(), mysqli_connect_error()));
1717

1818
if (!have_innodb($link))

0 commit comments

Comments
 (0)