svn: /php/php-src/ branches/PHP_5_3/ext/mysql/tests/mysql_query_load_data_openbasedir.phpt
trunk/ext/mysql/tests/mysql_query_load_data_openbasedir.phpt
| From: | Ulf Wendel | Date: | Thu, 05 Nov 2009 12:14:08 +0000 |
| Subject: | svn: /php/php-src/ branches/PHP_5_3/ext/mysql/tests/mysql_query_load_data_openbasedir.phpt trunk/ext/mysql/tests/mysql_query_load_data_openbasedir.phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-60853@lists.php.net to get a copy of this message | ||
uw Thu, 05 Nov 2009 12:14:08 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=290288
Log:
Fixing test: of course, libmysql won't care about open_basedir, but mysqlnd should
Changed paths:
U php/php-src/branches/PHP_5_3/ext/mysql/tests/mysql_query_load_data_openbasedir.phpt
U php/php-src/trunk/ext/mysql/tests/mysql_query_load_data_openbasedir.phpt
Modified: php/php-src/branches/PHP_5_3/ext/mysql/tests/mysql_query_load_data_openbasedir.phpt
===================================================================
--- php/php-src/branches/PHP_5_3/ext/mysql/tests/mysql_query_load_data_openbasedir.phpt 2009-11-05
12:12:55 UTC (rev 290287)
+++ php/php-src/branches/PHP_5_3/ext/mysql/tests/mysql_query_load_data_openbasedir.phpt 2009-11-05
12:14:08 UTC (rev 290288)
@@ -4,7 +4,11 @@
<?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 @@
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()) {
Modified: php/php-src/trunk/ext/mysql/tests/mysql_query_load_data_openbasedir.phpt
===================================================================
--- php/php-src/trunk/ext/mysql/tests/mysql_query_load_data_openbasedir.phpt 2009-11-05 12:12:55 UTC
(rev 290287)
+++ php/php-src/trunk/ext/mysql/tests/mysql_query_load_data_openbasedir.phpt 2009-11-05 12:14:08 UTC
(rev 290288)
@@ -4,7 +4,11 @@
<?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 @@
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()) {