--TEST-- Test fopen() for write CP1251 path --SKIPIF-- --INI-- internal_encoding=cp1251 --FILE-- ===DONE=== --EXPECTF-- resource(%d) of type (stream) int(25) bool(true) string(25) "writing to an mb filename" Active code page: 1251 getting basename of %s\привет7 string(%d) "привет7" bool(true) string(%d) "%s\привет7" Active code page: %d bool(true) ===DONE===