Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions ext/mysqli/tests/bug67563.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@ mysqli
<?php
require_once 'connect.inc';

if ($host !== '127.0.0.1')
die('skip local test');

if (@stream_socket_client('udp://[::1]:8888') === false)
die('skip no IPv6 support 2');
die('skip no IPv6 support');

if (!$link = @my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
die(sprintf("SKIP Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
$host, $user, $db, $port, $socket));
if (!$link = @my_mysqli_connect('[::1]', $user, $passwd, $db, $port, $socket)) {
die(sprintf("SKIP Cannot connect to the server using host=[::1], user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
$user, $db, $port, $socket));
}
?>
--INI--
Expand Down
Loading