diff options
author | Anatol Belski <ab@php.net> | 2017-07-15 11:31:45 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2017-07-15 11:31:45 +0200 |
commit | f6a44916623f9d8dc24d35d52f2998700f0567a6 (patch) | |
tree | 10dd72349b9dc5094dac0242efc24866e384e1c3 | |
parent | d6bcfcd9eb5fa762b58fc3ae4b11428e3980d295 (diff) | |
parent | 6cd140fdf8a276b27192288d4944f75aa7b81829 (diff) | |
download | php-git-f6a44916623f9d8dc24d35d52f2998700f0567a6.tar.gz |
Merge branch 'PHP-7.1'
* PHP-7.1:
Add test for bug #74923
-rw-r--r-- | ext/standard/tests/file/windows_mb_path/bug74923.phpt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ext/standard/tests/file/windows_mb_path/bug74923.phpt b/ext/standard/tests/file/windows_mb_path/bug74923.phpt new file mode 100644 index 0000000000..3660202a4c --- /dev/null +++ b/ext/standard/tests/file/windows_mb_path/bug74923.phpt @@ -0,0 +1,26 @@ +--TEST-- +Bug #74923 Crash when crawling through network share +--SKIPIF-- +<?php +include dirname(__FILE__) . DIRECTORY_SEPARATOR . "util.inc"; + +skip_if_not_win(); +if (getenv("SKIP_SLOW_TESTS")) die("skip slow test"); + +?> +--FILE-- +<?php + +/* No way to affect timeout here. On different systems this might take some + dozens of seconds to complete. */ + +$s = '\\\\hello.com' . str_repeat('\\', 260); + +var_dump($s, @stat($s)); + +?> +===DONE=== +--EXPECTF-- +string(271) "%s" +bool(false) +===DONE=== |