summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorULF WENDEL <uw@php.net>2012-09-29 18:54:54 +0200
committerULF WENDEL <uw@php.net>2012-09-29 18:54:54 +0200
commitda541ff561e0ac6ac72d2efd8b785ecfeef868dc (patch)
tree83c1ee8511356a1a8e13da3e178504474e71f13b
parent20e76f4487baf60dc52b348e86bae4628026c4c2 (diff)
downloadphp-git-da541ff561e0ac6ac72d2efd8b785ecfeef868dc.tar.gz
Cover have_ssl=NO and have_ssl=DISABLED
-rw-r--r--ext/mysqli/tests/bug51647.phpt4
-rw-r--r--ext/mysqli/tests/bug55283.phpt4
2 files changed, 4 insertions, 4 deletions
diff --git a/ext/mysqli/tests/bug51647.phpt b/ext/mysqli/tests/bug51647.phpt
index b1c1e87a77..78540f1c33 100644
--- a/ext/mysqli/tests/bug51647.phpt
+++ b/ext/mysqli/tests/bug51647.phpt
@@ -24,12 +24,12 @@ if ($res = $link->query('SHOW VARIABLES LIKE "have_ssl"')) {
die(sprintf("skip Failed to test for MySQL SSL support, [%d] %s", $link->errno, $link->error));
}
}
-
+
if (empty($row))
die(sprintf("skip Failed to test for MySQL SSL support, [%d] %s", $link->errno, $link->error));
-if ($row[1] == 'NO')
+if (($row[1] == 'NO') || ($row[1] == 'DISABLED'))
die(sprintf("skip MySQL has no SSL support, [%d] %s", $link->errno, $link->error));
$link->close();
diff --git a/ext/mysqli/tests/bug55283.phpt b/ext/mysqli/tests/bug55283.phpt
index 6000fce0a9..d03daaee88 100644
--- a/ext/mysqli/tests/bug55283.phpt
+++ b/ext/mysqli/tests/bug55283.phpt
@@ -29,7 +29,7 @@ if ($res = $link->query('SHOW VARIABLES LIKE "have_ssl"')) {
if (empty($row))
die(sprintf("skip Failed to test for MySQL SSL support, [%d] %s", $link->errno, $link->error));
-if ($row[1] == 'NO')
+if (($row[1] == 'NO') || ($row[1] == 'DISABLED'))
die(sprintf("skip MySQL has no SSL support, [%d] %s", $link->errno, $link->error));
$link->close();
@@ -41,7 +41,7 @@ $link->close();
$flags = MYSQLI_CLIENT_SSL;
-
+
$link = mysqli_init();
mysqli_ssl_set($link, null, null, null, null, "RC4-MD5");
if (my_mysqli_real_connect($link, 'p:' . $host, $user, $passwd, $db, $port, null, $flags)) {