com php-src: fix test: ext/mysqli/tests/bug68077.phpt
| From: | Anatol Belski | Date: | Sun, 04 Dec 2016 21:27:17 +0000 |
| Subject: | com php-src: fix test: ext/mysqli/tests/bug68077.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-96183@lists.php.net to get a copy of this message | ||
Commit: 1eb3f01c680c2b281d848d2f9c41e09092e952d9
Author: Anatol Belski <ab@php.net> Sun, 4 Dec 2016 22:27:17 +0100
Parents: 69fbc751ffb84f009f2e043ed03a49c16122ad82
Branches: PHP-7.0 PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=1eb3f01c680c2b281d848d2f9c41e09092e952d9
Log:
fix test
On Windows, either doubled backslashes or forward slashes are supported
on the server side.
Changed paths:
M ext/mysqli/tests/bug68077.phpt
Diff:
diff --git a/ext/mysqli/tests/bug68077.phpt b/ext/mysqli/tests/bug68077.phpt
index 3b6fa92..0652e68 100644
--- a/ext/mysqli/tests/bug68077.phpt
+++ b/ext/mysqli/tests/bug68077.phpt
@@ -41,7 +41,7 @@ open_basedir=
if (!$link->query("SELECT 1 FROM DUAL"))
printf("[005] [%d] %s\n", $link->errno, $link->error);
- if (!$link->query("LOAD DATA LOCAL INFILE '" . __DIR__ .
"/bug53503.data' INTO TABLE test")) {
+ if (!$link->query("LOAD DATA LOCAL INFILE '" . str_replace("\\",
"/", __DIR__) . "/bug53503.data' INTO TABLE test")) {
printf("[006] [%d] %s\n", $link->errno, $link->error);
echo "bug\n";
} else {