We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7da8f5 commit 5cf8c72Copy full SHA for 5cf8c72
ext/standard/tests/file/bug47517.phpt
@@ -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
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
0 commit comments