1--TEST-- 2cp1252 cmd test 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(); 10skip_if_wrong_cp(437, "oem"); 11 12?> 13--CONFLICTS-- 14file 15--INI-- 16internal_encoding=cp1252 17--FILE-- 18<?php 19/* 20#vim: set fileencoding=cp1252 21#vim: set encoding=cp1252 22*/ 23 24include __DIR__ . DIRECTORY_SEPARATOR . "util.inc"; 25 26$item = "gef��"; 27$prefix = create_data("file", $item, 1252); 28$fn = $prefix . DIRECTORY_SEPARATOR . $item; 29 30var_dump($fn); 31var_dump(touch($fn)); 32var_dump(file_exists($fn)); 33system("dir /b " . $fn); 34 35remove_data("file"); 36 37?> 38--EXPECTF-- 39string(%d) "%s\gef��" 40bool(true) 41bool(true) 42gef�� 43