--TEST-- Test fopen() for write to cp932 path --SKIPIF-- --INI-- internal_encoding=cp932 --FILE-- ===DONE=== --EXPECTF-- resource(%d) of type (stream) int(25) bool(true) string(25) "writing to an mb filename" Active code page: 932 getting basename of %s\テストマルチバイト・パス33 string(%d) "テストマルチバイト・パス33" bool(true) string(%d) "%s\テストマルチバイト・パス33" Active code page: %d ===DONE===