1--TEST-- 2Test mkdir/rmdir cp936 path 3--SKIPIF-- 4<?php 5include dirname(__FILE__) . DIRECTORY_SEPARATOR . "util.inc"; 6 7skip_if_not_win(); 8if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); 9skip_if_no_required_exts(); 10skip_if_wrong_cp(936, "oem"); 11 12?> 13--INI-- 14internal_encoding=cp936 15--FILE-- 16<?php 17/* 18#vim: set fileencoding=cp936 19#vim: set encoding=cp936 20*/ 21 22include dirname(__FILE__) . DIRECTORY_SEPARATOR . "util.inc"; 23 24$item = "�yԇ���ֹ�·��"; // cp936 string 25$prefix = create_data("dir_cp936", $item . "5", 936); 26$path = $prefix . DIRECTORY_SEPARATOR . "${item}5"; 27 28$subpath = $path . DIRECTORY_SEPARATOR . "${item}4"; 29 30/* The mb dirname exists*/ 31var_dump(file_exists($path)); 32 33var_dump(mkdir($subpath)); 34var_dump(file_exists($subpath)); 35 36get_basename_with_cp($subpath, 936); 37 38var_dump(rmdir($subpath)); 39remove_data("dir_cp936"); 40 41?> 42===DONE=== 43--EXPECTF-- 44bool(true) 45bool(true) 46bool(true) 47Active code page: 936 48getting basename of %s\�yԇ���ֹ�·��5\�yԇ���ֹ�·��4 49string(15) "�yԇ���ֹ�·��4" 50bool(true) 51string(%d) "%s\�yԇ���ֹ�·��5\�yԇ���ֹ�·��4" 52Active code page: %d 53bool(true) 54===DONE=== 55