1--TEST-- 2Test chdir()/getcwd() with a dir for multibyte filenames 3--SKIPIF-- 4<?php 5 6include __DIR__ . DIRECTORY_SEPARATOR . "util.inc"; 7 8 9skip_if_not_win(); 10if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); 11skip_if_no_required_exts(); 12 13 14?> 15--CONFLICTS-- 16dir_mb 17--FILE-- 18<?php 19 20 21include __DIR__ . DIRECTORY_SEPARATOR . "util.inc"; 22 23$prefix = create_data("dir_mb"); 24$dirw = $prefix . DIRECTORY_SEPARATOR . "テストマルチバイト・パス42"; 25touch($dirw . DIRECTORY_SEPARATOR . "dummy.txt"); 26 27$old_cp = get_active_cp(); 28set_active_cp(65001); 29 30$oldcwd = getcwd(); 31var_dump(chdir($dirw)); 32var_dump(getcwd()); 33 34var_dump(file_exists("dummy.txt")); 35 36set_active_cp($old_cp); 37 38chdir($oldcwd); 39remove_data("dir_mb"); 40 41?> 42--EXPECTF-- 43Active code page: 65001 44bool(true) 45string(%d) "%s\テストマルチバイト・パス42" 46bool(true) 47Active code page: %d 48