1--TEST--
2Bug #76857 (Can read "non-existant" files)
3--FILE--
4<?php
5file_put_contents(__DIR__ . '/bug76857_data.txt', 'test data');
6$path = "foobar://google.com/../../bug76857_data.txt";
7chdir(__DIR__);
8var_dump(file_exists($path));
9var_dump(file_get_contents($path, false, null, 0, 10));
10?>
11--EXPECTF--
12Warning: file_exists(): Unable to find the wrapper "foobar" - did you forget to enable it when you configured PHP? in %s on line %d
13bool(true)
14
15Warning: file_get_contents(): Unable to find the wrapper "foobar" - did you forget to enable it when you configured PHP? in %s on line %d
16string(9) "test data"
17--CLEAN--
18<?php
19@unlink(__DIR__ . '/bug76857_data.txt');
20?>