com php-src: fix test: ext/standard/tests/directory/bug74 589_utf8.phpt

[email protected] (Anatol Belski)
Newsgroups php.cvs
Message-ID <[email protected]>
Commit:    b73a73da25cacef5b0fd1b6ca69740191fe68831
Author:    Anatol Belski <[email protected]>         Tue, 16 May 2017 15:09:02 +0200
Parents:   71f8c4dcfd537fb3ab1c4269d1f58c3c7a3fb0fa
Branches:  PHP-7.1 master

Link:       http://git.php.net/?p=php-src.git;a=commitdiff;h=b73a73da25cacef5b0fd1b6ca69740191fe68831

Log:
fix test

Changed paths:
  M  ext/standard/tests/directory/bug74589_utf8.phpt


Diff:
diff --git a/ext/standard/tests/directory/bug74589_utf8.phpt b/ext/standard/tests/directory/bug74589_utf8.phpt
index e2487d9..686e005 100644
--- a/ext/standard/tests/directory/bug74589_utf8.phpt
+++ b/ext/standard/tests/directory/bug74589_utf8.phpt
@@ -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--
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.