summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlf Wendel <uw@php.net>2009-11-05 12:14:08 +0000
committerUlf Wendel <uw@php.net>2009-11-05 12:14:08 +0000
commitd7f1cfe6a4b9d4687f51292f9e22bc74fc2ca5a4 (patch)
tree0f985bae1944e80f8e5d91bdaf5c02b2e79034ca
parentea3ef35f195c2a764bd95a31dff63fc2419a7f94 (diff)
downloadphp-git-d7f1cfe6a4b9d4687f51292f9e22bc74fc2ca5a4.tar.gz
Fixing test: of course, libmysql won't care about open_basedir, but mysqlnd should
-rw-r--r--ext/mysql/tests/mysql_query_load_data_openbasedir.phpt5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/mysql/tests/mysql_query_load_data_openbasedir.phpt b/ext/mysql/tests/mysql_query_load_data_openbasedir.phpt
index 4e3bfbcf39..a257f5fb81 100644
--- a/ext/mysql/tests/mysql_query_load_data_openbasedir.phpt
+++ b/ext/mysql/tests/mysql_query_load_data_openbasedir.phpt
@@ -4,6 +4,10 @@ LOAD DATA INFILE - open_basedir
<?php
require_once('skipif.inc');
require_once('skipifconnectfailure.inc');
+require_once("connect.inc");
+
+if (!$IS_MYSQLND)
+ die("skip mysqlnd only, libmysql does not know about open_basedir restrictions");
if (file_exists('./simple.csv') && !unlink('./simple.csv'))
die("skip Cannot remove previous CSV file");
@@ -14,7 +18,6 @@ if (!$fp = fopen('./simple.csv', 'w'))
fclose($fp);
@unlink('./simple.csv');
-require_once("connect.inc");
if ($socket == "" && $host != NULL && $host != 'localhost' && $host != '.') {
/* could be a remote TCP/IP connection. LOCAL INFILE may not work */
if (gethostbyaddr($host) != gethostname()) {