1--TEST-- 2Thai UTF-8 cmd test 3--SKIPIF-- 4<?php 5include __DIR__ . DIRECTORY_SEPARATOR . "util.inc"; 6 7skip_if_not_win(); 8if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); 9skip_if_no_required_exts(); 10 11?> 12--CONFLICTS-- 13file_cp874 14--FILE-- 15<?php 16/* 17#vim: set fileencoding=cp874 18#vim: set encoding=cp874 19*/ 20 21include __DIR__ . DIRECTORY_SEPARATOR . "util.inc"; 22 23 24$item = "เป็นแฟ้มที่ทดสอบ11"; 25$prefix = create_data("file_cp874", $item); 26$fn = $prefix . DIRECTORY_SEPARATOR . $item; 27 28var_dump($fn); 29var_dump(touch($fn)); 30var_dump(file_exists($fn)); 31system("dir /b " . $fn); 32 33remove_data("file_cp874"); 34 35?> 36--EXPECTF-- 37string(%d) "%s\เป็นแฟ้มที่ทดสอบ11" 38bool(true) 39bool(true) 40เป็นแฟ้มที่ทดสอบ11 41