1
0
mirror of https://github.com/php/php-src.git synced 2026-04-21 15:08:16 +02:00

Fix the test for libmysql, which expects the certificates

to be in the directory where the interpreter is started. When
using mysqlnd they should not include path and will be found
in the directory of the script.
This commit is contained in:
Andrey Hristov
2010-06-14 18:23:17 +00:00
parent 4637e3641f
commit 2f838ef547
+2 -3
View File
@@ -12,7 +12,8 @@ require_once('skipifconnectfailure.inc');
if (!is_object($link = mysqli_init()))
printf("[001] Cannot create link\n");
if (!$link->ssl_set("client-key.pem", "client-cert.pem", "cacert.pem","",""))
$path_to_pems = !$IS_MYSQLND? "ext/mysqli/tests/" : "";
if (!$link->ssl_set("{$path_to_pems}client-key.pem", "{$path_to_pems}client-cert.pem", "{$path_to_pems}cacert.pem","",""))
printf("[002] [%d] %s\n", $link->errno, $link->error);
if (!my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)) {
@@ -37,8 +38,6 @@ require_once('skipifconnectfailure.inc');
printf("[006] [%d] %s\n", $link->errno, $link->error);
}
var_dump($row);
print "done!";