mirror of
https://github.com/php/php-src.git
synced 2024-10-21 00:12:34 +00:00
3a11ec8ba1
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.
11 lines
330 B
PHP
Executable File
11 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);
|
|
}
|
|
?>
|