com php-src: Add test for bug #74923: ext/standard/tests/file/w indows_mb_path/bug74923.phpt
| From: | Anatol Belski | Date: | Sat, 15 Jul 2017 09:30:56 +0000 |
| Subject: | com php-src: Add test for bug #74923: ext/standard/tests/file/w indows_mb_path/bug74923.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-98563@lists.php.net to get a copy of this message | ||
Commit: 6cd140fdf8a276b27192288d4944f75aa7b81829
Author: Anatol Belski <ab@php.net> Sat, 15 Jul 2017 11:30:56 +0200
Parents: 0b5683e48058551261182cf1ce784e7d90793919
Branches: PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6cd140fdf8a276b27192288d4944f75aa7b81829
Log:
Add test for bug #74923
Bugs:
https://bugs.php.net/74923
Changed paths:
A ext/standard/tests/file/windows_mb_path/bug74923.phpt
Diff:
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 0000000..3660202
--- /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===