mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00

DB server. Note the environment variable MYSQL_TEST_SKIP_CONNECT_FAILURE to control if you want tests that can't connect to fail or to be skipped.
10 lines
330 B
PHP
Executable file
10 lines
330 B
PHP
Executable file
<?php
|
|
require_once('connect.inc');
|
|
if ($skip_on_connect_failure) {
|
|
include_once('connect.inc');
|
|
$link = @mysqli_connect($host, $user, $passwd, $db, $port, $socket);
|
|
if (!is_object($link))
|
|
die(sprintf("skip Can't connect to MySQL Server - [%d] %s", mysqli_connect_errno(), mysqli_connect_error()));
|
|
mysqli_close($link);
|
|
}
|
|
?>
|