]> granicus.if.org Git - php/commitdiff
fix test
authorAnatol Belski <ab@php.net>
Sun, 4 Dec 2016 21:27:17 +0000 (22:27 +0100)
committerAnatol Belski <ab@php.net>
Sun, 4 Dec 2016 21:27:17 +0000 (22:27 +0100)
On Windows, either doubled backslashes or forward slashes are supported
on the server side.

ext/mysqli/tests/bug68077.phpt

index 3b6fa92ae394fc0043f8612311005fbb31031559..0652e68c9b282b4e2760f86283219372bd428d3f 100644 (file)
@@ -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 {