Skip to content

Commit 5cf8c72

Browse files
committed
added test for bug #47517
1 parent d7da8f5 commit 5cf8c72

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

ext/standard/tests/file/bug47517.phpt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
--TEST--
2+
Bug #47517 test registry virtualization disabled
3+
--SKIPIF--
4+
<?php
5+
if (substr(PHP_OS, 0, 3) != 'WIN') {
6+
die('skip only for Windows');
7+
}
8+
?>
9+
--FILE--
10+
<?php
11+
/* This has to behave same way on both 64- and 32-bits. */
12+
file_put_contents('C:\Program Files\myfile.txt', 'hello');
13+
?>
14+
==DONE==
15+
--EXPECTF--
16+
Warning: file_put_contents(C:\Program Files\myfile.txt): failed to open stream: Permission denied in %sbug47517.php on line %d
17+
==DONE==

0 commit comments

Comments
 (0)