1--TEST--
2Test mkdir/rmdir UTF-8 path with cp1250 specific symbols
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--
13dir_cp1250
14--FILE--
15<?php
16/*
17#vim: set fileencoding=cp1250
18#vim: set encoding=cp1250
19*/
20
21include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";
22
23$item = "šđčćž_ŠĐČĆŽ"; // cp1250 specific chars
24$prefix = create_data("dir_cp1250", "${item}42");
25$path = $prefix . DIRECTORY_SEPARATOR . "${item}42";
26
27$subpath = $path . DIRECTORY_SEPARATOR . "${item}4";
28
29/* The mb dirname exists*/
30var_dump(file_exists($path));
31
32var_dump(mkdir($subpath));
33var_dump(file_exists($subpath));
34
35get_basename_with_cp($subpath, 65001);
36
37var_dump(rmdir($subpath));
38remove_data("dir_cp1250");
39
40?>
41===DONE===
42--EXPECTF--
43bool(true)
44bool(true)
45bool(true)
46Active code page: 65001
47getting basename of %s\šđčćž_ŠĐČĆŽ42\šđčćž_ŠĐČĆŽ4
48string(22) "šđčćž_ŠĐČĆŽ4"
49bool(true)
50string(%d) "%s\šđčćž_ŠĐČĆŽ42\šđčćž_ŠĐČĆŽ4"
51Active code page: %d
52bool(true)
53===DONE===
54