]> granicus.if.org Git - php/commitdiff
fix test
authorAnatol Belski <ab@php.net>
Tue, 16 May 2017 13:09:02 +0000 (15:09 +0200)
committerAnatol Belski <ab@php.net>
Tue, 16 May 2017 13:09:02 +0000 (15:09 +0200)
ext/standard/tests/directory/bug74589_utf8.phpt

index e2487d92f991b21de158d502d76337713ac6a5ad..686e005b8a9641ffa9618ec7bf15e6141f566f54 100644 (file)
@@ -2,7 +2,7 @@
 Bug #74589 __DIR__ wrong for unicode character, UTF-8
 --SKIPIF--
 <?php
-if (substr(PHP_OS, 0, 3) != 'WIN' || PHP_OS != 'Linux') {
+if (substr(PHP_OS, 0, 3) != 'WIN' && PHP_OS != 'Linux') {
     die('skip Linux or Windows only');
 }
 ?>
@@ -35,7 +35,7 @@ echo shell_exec("$php -n $test_file");
 ===DONE===
 --EXPECTF--    
 string(%d) "%sbug74589_新建文件夹"
-string(%d) "%sbug74589_新建文件夹\test.php"
+string(%d) "%sbug74589_新建文件夹%etest.php"
 bool(true)
 ===DONE===
 --CLEAN--