mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
c5401854fc
This should fix most of the remaining issues with tabs and spaces being mixed in tests.
20 lines
543 B
PHP
20 lines
543 B
PHP
--TEST--
|
|
Bug #47517 test registry virtualization disabled
|
|
--SKIPIF--
|
|
<?php
|
|
if (substr(PHP_OS, 0, 3) != 'WIN') {
|
|
die('skip only for Windows');
|
|
}
|
|
exec('net session 2>&1', $out, $status);
|
|
if (!$status) {
|
|
die('skip test runs under an elevated user account');
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
/* This has to behave same way on both 64- and 32-bits. */
|
|
file_put_contents('C:\Program Files\myfile.txt', 'hello');
|
|
?>
|
|
--EXPECTF--
|
|
Warning: file_put_contents(C:\Program Files\myfile.txt): Failed to open stream: Permission denied in %sbug47517.php on line %d
|