com php-src: added test for bug #47517: ext/standard/tests/file/bug47517.phpt

From: Date: Thu, 02 Jun 2016 21:06:20 +0000
Subject: com php-src: added test for bug #47517: ext/standard/tests/file/bug47517.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-92286@lists.php.net to get a copy of this message
Commit: 5cf8c72dfb493df2ed31803032813568338b7675 Author: Anatol Belski <ab@php.net> Thu, 2 Jun 2016 23:06:20 +0200 Parents: d7da8f5ea4866026113cc23cbdfe8e3813147ab4 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5cf8c72dfb493df2ed31803032813568338b7675 Log: added test for bug #47517 Bugs: https://bugs.php.net/47517 Changed paths: A ext/standard/tests/file/bug47517.phpt Diff: diff --git a/ext/standard/tests/file/bug47517.phpt b/ext/standard/tests/file/bug47517.phpt new file mode 100644 index 0000000..97f387c --- /dev/null +++ b/ext/standard/tests/file/bug47517.phpt @@ -0,0 +1,17 @@ +--TEST-- +Bug #47517 test registry virtualization disabled +--SKIPIF-- +<?php +if (substr(PHP_OS, 0, 3) != 'WIN') { + die('skip only for Windows'); +} +?> +--FILE-- +<?php +/* This has to behave same way on both 64- and 32-bits. */ +file_put_contents('C:\Program Files\myfile.txt', 'hello'); +?> +==DONE== +--EXPECTF-- +Warning: file_put_contents(C:\Program Files\myfile.txt): failed to open stream: Permission denied in %sbug47517.php on line %d +==DONE==

« previous php.cvs (#92286) next »