summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2010-06-14 18:23:17 +0000
committerAndrey Hristov <andrey@php.net>2010-06-14 18:23:17 +0000
commit2f838ef5471a61e5e62077c8cbc6735ba3be9be1 (patch)
tree1a79a421ab1b6beaf9465eb89b28df76851bc96b
parent4637e3641f2bfd74fe34df1e2a0a33a9da531369 (diff)
downloadphp-git-2f838ef5471a61e5e62077c8cbc6735ba3be9be1.tar.gz
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.
-rw-r--r--ext/mysqli/tests/bug51647.phpt5
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/mysqli/tests/bug51647.phpt b/ext/mysqli/tests/bug51647.phpt
index 33aec04d5c..833f8edbbb 100644
--- a/ext/mysqli/tests/bug51647.phpt
+++ b/ext/mysqli/tests/bug51647.phpt
@@ -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!";