Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions ext/standard/tests/file/windows_mb_path/bug54028.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@ Bug #54028 Directory::read() cannot handle non-unicode chars properly
mbstring
--SKIPIF--
<?php
include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";

skip_if_not_win();
if (PHP_OS_FAMILY !== 'Windows') die('skip windows only test');
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
skip_if_no_required_exts();

?>
--FILE--
<?php
Expand Down
6 changes: 1 addition & 5 deletions ext/standard/tests/file/windows_mb_path/bug54028_2.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
Bug #54028 realpath(".") return false
--SKIPIF--
<?php
include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";

skip_if_not_win();
if (PHP_OS_FAMILY !== 'Windows') die('skip windows only test');
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
skip_if_no_required_exts();

?>
--FILE--
<?php
Expand Down
6 changes: 1 addition & 5 deletions ext/standard/tests/file/windows_mb_path/bug54977.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
Bug #54977 UTF-8 files and folder are not shown
--SKIPIF--
<?php
include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";

skip_if_not_win();
if (PHP_OS_FAMILY !== 'Windows') die('skip windows only test');
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
skip_if_no_required_exts();

?>
--FILE--
<?php
Expand Down
6 changes: 1 addition & 5 deletions ext/standard/tests/file/windows_mb_path/bug61315.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
Bug #61315 stat() fails with specific DBCS characters
--SKIPIF--
<?php
include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";

skip_if_not_win();
if (PHP_OS_FAMILY !== 'Windows') die('skip windows only test');
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
skip_if_no_required_exts();

?>
--FILE--
<?php
Expand Down
6 changes: 1 addition & 5 deletions ext/standard/tests/file/windows_mb_path/bug64506.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
PHP can not read or write file correctly if file name have special char like š
--SKIPIF--
<?php
include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";

skip_if_not_win();
if (PHP_OS_FAMILY !== 'Windows') die('skip windows only test');
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
skip_if_no_required_exts();

?>
--FILE--
<?php
Expand Down
16 changes: 6 additions & 10 deletions ext/standard/tests/file/windows_mb_path/bug64699.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
Bug #64699 is_dir() is inaccurate result on Windows with japanese locale.
--SKIPIF--
<?php
include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";

skip_if_not_win();
if (PHP_OS_FAMILY !== 'Windows') die('skip windows only test');
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
skip_if_no_required_exts();

?>
--FILE--
<?php
Expand All @@ -16,8 +12,9 @@ skip_if_no_required_exts();

include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";

$old_cp = get_active_cp();
set_active_cp(65001);
$old_cp = sapi_windows_cp_get();
sapi_windows_cp_set(65001);
echo "Active code page: ", sapi_windows_cp_get(), "\n";

$prefix = __DIR__ . DIRECTORY_SEPARATOR . "testBug64699" . DIRECTORY_SEPARATOR;

Expand Down Expand Up @@ -45,10 +42,10 @@ foreach ($dirs as $d) {
}
rmdir($prefix);

set_active_cp($old_cp);
sapi_windows_cp_set($old_cp);

?>
--EXPECTF--
--EXPECT--
Active code page: 65001
filetype()[dir ] == is_dir()[dir ] -> OK: .
filetype()[dir ] == is_dir()[dir ] -> OK: ..
Expand All @@ -58,4 +55,3 @@ filetype()[dir ] == is_dir()[dir ] -> OK: ソ
filetype()[dir ] == is_dir()[dir ] -> OK: ゾ
filetype()[dir ] == is_dir()[dir ] -> OK: 多国語
filetype()[dir ] == is_dir()[dir ] -> OK: 表
Active code page: %d
6 changes: 1 addition & 5 deletions ext/standard/tests/file/windows_mb_path/bug70903.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
Bug #70903 scandir wrongly interprets the Turkish "ı" character
--SKIPIF--
<?php
include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";

skip_if_not_win();
if (PHP_OS_FAMILY !== 'Windows') die('skip windows only test');
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
skip_if_no_required_exts();

?>
--FILE--
<?php
Expand Down
8 changes: 3 additions & 5 deletions ext/standard/tests/file/windows_mb_path/bug71509.phpt
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
--TEST--
Bug #71509 Zip problem with swedish letters in filename.
--EXTENSIONS--
zip
--SKIPIF--
<?php
include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";

skip_if_not_win();
if (PHP_OS_FAMILY !== 'Windows') die('skip windows only test');
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
skip_if_no_required_exts("zip");

?>
--CONFLICTS--
bug71509
Expand Down
5 changes: 1 addition & 4 deletions ext/standard/tests/file/windows_mb_path/bug74923.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
Bug #74923 Crash when crawling through network share
--SKIPIF--
<?php
include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";

skip_if_not_win();
if (PHP_OS_FAMILY !== 'Windows') die('skip windows only test');
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");

?>
--FILE--
<?php
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
Bug #75063 Many filesystem-related functions do not work with multibyte file names, cp1251
--SKIPIF--
<?php
include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";

skip_if_not_win();
if (PHP_OS_FAMILY !== 'Windows') die('skip windows only test');
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
skip_if_no_required_exts();

?>
--INI--
default_charset=cp1251
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
Bug #75063 Many filesystem-related functions do not work with multibyte file names, UTF-8
--SKIPIF--
<?php
include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";

skip_if_not_win();
if (PHP_OS_FAMILY !== 'Windows') die('skip windows only test');
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
skip_if_no_required_exts();

?>
--FILE--
<?php
Expand Down
5 changes: 1 addition & 4 deletions ext/standard/tests/file/windows_mb_path/recursive_it.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
RecursiveDirectoryIterator with dir path long or of edge case length
--SKIPIF--
<?php
include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";

skip_if_not_win();

if (PHP_OS_FAMILY !== 'Windows') die('skip windows only test');
if (strlen(__DIR__) > 259) die("skip Unsuitable starting path length");
?>
--FILE--
Expand Down
3 changes: 1 addition & 2 deletions ext/standard/tests/file/windows_mb_path/test_big5_0.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ Test fopen() for reading big5 path
<?php
include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";

skip_if_not_win();
if (PHP_OS_FAMILY !== 'Windows') die('skip windows only test');
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
skip_if_no_required_exts();
skip_if_wrong_cp(950, "ansi");

?>
Expand Down
3 changes: 1 addition & 2 deletions ext/standard/tests/file/windows_mb_path/test_big5_1.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ Test mkdir/rmdir big5 path
<?php
include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";

skip_if_not_win();
if (PHP_OS_FAMILY !== 'Windows') die('skip windows only test');
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
skip_if_no_required_exts();
skip_if_wrong_cp(950, "ansi");

?>
Expand Down
3 changes: 1 addition & 2 deletions ext/standard/tests/file/windows_mb_path/test_big5_2.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ Test fopen() for write big5 to UTF-8 path
<?php
include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";

skip_if_not_win();
if (PHP_OS_FAMILY !== 'Windows') die('skip windows only test');
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
skip_if_no_required_exts();
skip_if_wrong_cp(950, "ansi");

?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
Test fopen() for reading big5 to UTF-8 path
--SKIPIF--
<?php
include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";

skip_if_not_win();
if (PHP_OS_FAMILY !== 'Windows') die('skip windows only test');
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
skip_if_no_required_exts();

?>
--CONFLICTS--
file_big5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
Test mkdir/rmdir big5 to UTF-8 path
--SKIPIF--
<?php
include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";

skip_if_not_win();
if (PHP_OS_FAMILY !== 'Windows') die('skip windows only test');
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
skip_if_no_required_exts();

?>
--CONFLICTS--
dir_big5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
Test fopen() for write big5 to UTF-8 path
--SKIPIF--
<?php
include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";

skip_if_not_win();
if (PHP_OS_FAMILY !== 'Windows') die('skip windows only test');
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
skip_if_no_required_exts();

?>
--CONFLICTS--
file_big5
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
Test fopen() for reading UTF-8 path with cp1250 specific symbols
--SKIPIF--
<?php
include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";

skip_if_not_win();
if (PHP_OS_FAMILY !== 'Windows') die('skip windows only test');
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
skip_if_no_required_exts();

?>
--CONFLICTS--
file_cp1250
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
Test mkdir/rmdir UTF-8 path with cp1250 specific symbols
--SKIPIF--
<?php
include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";

skip_if_not_win();
if (PHP_OS_FAMILY !== 'Windows') die('skip windows only test');
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
skip_if_no_required_exts();

?>
--CONFLICTS--
dir_cp1250
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
Test fopen() for write to UTF-8 path with cp1250 specific symbols
--SKIPIF--
<?php
include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";

skip_if_not_win();
if (PHP_OS_FAMILY !== 'Windows') die('skip windows only test');
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
skip_if_no_required_exts();

?>
--CONFLICTS--
dir_cp1250
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
Test fopen() for reading UTF-8 path with cp1250 specific symbols
--SKIPIF--
<?php
include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";

skip_if_not_win();
if (PHP_OS_FAMILY !== 'Windows') die('skip windows only test');
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
skip_if_no_required_exts();

?>
--CONFLICTS--
file_cp1250
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
Test mkdir/rmdir UTF-8 path with cp1250 specific symbols
--SKIPIF--
<?php
include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";

skip_if_not_win();
if (PHP_OS_FAMILY !== 'Windows') die('skip windows only test');
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
skip_if_no_required_exts();

?>
--CONFLICTS--
dir_cp1250
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
Test fopen() for write to UTF-8 path with cp1250 specific symbols
--SKIPIF--
<?php
include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";

skip_if_not_win();
if (PHP_OS_FAMILY !== 'Windows') die('skip windows only test');
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
skip_if_no_required_exts();

?>
--CONFLICTS--
dir_cp1250
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ Test fopen() for reading CP1251 path
<?php
include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";

skip_if_not_win();
if (PHP_OS_FAMILY !== 'Windows') die('skip windows only test');
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
skip_if_no_required_exts();
skip_if_wrong_cp(1251, "ansi");

?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ Test mkdir/rmdir CP1251 path
<?php
include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";

skip_if_not_win();
if (PHP_OS_FAMILY !== 'Windows') die('skip windows only test');
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
skip_if_no_required_exts();
skip_if_wrong_cp(1251, "ansi");

?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ Test fopen() for write CP1251 path
<?php
include __DIR__ . DIRECTORY_SEPARATOR . "util.inc";

skip_if_not_win();
if (PHP_OS_FAMILY !== 'Windows') die('skip windows only test');
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
skip_if_no_required_exts();
skip_if_wrong_cp(1251, "ansi");

?>
Expand Down
Loading
Loading