diff options
Diffstat (limited to 'ext/mysqli/tests/bug55283.phpt')
-rw-r--r-- | ext/mysqli/tests/bug55283.phpt | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/ext/mysqli/tests/bug55283.phpt b/ext/mysqli/tests/bug55283.phpt index b0714aeaaa..d788fe12a4 100644 --- a/ext/mysqli/tests/bug55283.phpt +++ b/ext/mysqli/tests/bug55283.phpt @@ -39,28 +39,28 @@ $link->close(); ?> --FILE-- <?php - require_once "connect.inc"; - $db1 = new mysqli(); + require_once "connect.inc"; + $db1 = new mysqli(); - $flags = MYSQLI_CLIENT_SSL | MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT; + $flags = MYSQLI_CLIENT_SSL | MYSQLI_CLIENT_SSL_DONT_VERIFY_SERVER_CERT; - $link = mysqli_init(); - mysqli_ssl_set($link, null, null, null, null, "AES256-SHA"); - if (my_mysqli_real_connect($link, 'p:' . $host, $user, $passwd, $db, $port, null, $flags)) { - $r = $link->query("SHOW STATUS LIKE 'Ssl_cipher'"); - var_dump($r->fetch_row()); - } + $link = mysqli_init(); + mysqli_ssl_set($link, null, null, null, null, "AES256-SHA"); + if (my_mysqli_real_connect($link, 'p:' . $host, $user, $passwd, $db, $port, null, $flags)) { + $r = $link->query("SHOW STATUS LIKE 'Ssl_cipher'"); + var_dump($r->fetch_row()); + } - /* non-persistent connection */ - $link2 = mysqli_init(); - mysqli_ssl_set($link2, null, null, null, null, "AES256-SHA"); - if (my_mysqli_real_connect($link2, $host, $user, $passwd, $db, $port, null, $flags)) { - $r2 = $link2->query("SHOW STATUS LIKE 'Ssl_cipher'"); - var_dump($r2->fetch_row()); - } + /* non-persistent connection */ + $link2 = mysqli_init(); + mysqli_ssl_set($link2, null, null, null, null, "AES256-SHA"); + if (my_mysqli_real_connect($link2, $host, $user, $passwd, $db, $port, null, $flags)) { + $r2 = $link2->query("SHOW STATUS LIKE 'Ssl_cipher'"); + var_dump($r2->fetch_row()); + } - echo "done\n"; + echo "done\n"; ?> --EXPECTF-- array(2) { |