]> granicus.if.org Git - php/commitdiff
Add test for bug #74923
authorAnatol Belski <ab@php.net>
Sat, 15 Jul 2017 09:30:56 +0000 (11:30 +0200)
committerAnatol Belski <ab@php.net>
Sat, 15 Jul 2017 09:30:56 +0000 (11:30 +0200)
ext/standard/tests/file/windows_mb_path/bug74923.phpt [new file with mode: 0644]

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 (file)
index 0000000..3660202
--- /dev/null
@@ -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===