1--TEST--
2Stream crypto.file plain open test
3--FILE--
4<?php
5$filename = (dirname( __FILE__) . "/stream_file_plain_open.tmp");
6if (file_exists($filename)) // make sure that the file does not exist
7	unlink($filename);
8$stream = fopen("crypto.file://" . $filename, "r");
9touch($filename);
10$stream = fopen("crypto.file://" . $filename, "r");
11var_dump($stream);
12var_dump(fclose($stream));
13// test script closing
14$stream = fopen("crypto.file://" . $filename, "r");
15?>
16--CLEAN--
17<?php
18$filename = (dirname( __FILE__) . "/stream_file_plain_open.tmp");
19if (file_exists($filename))
20	unlink($filename);
21?>
22--EXPECTF--
23
24Warning: fopen(crypto.file://%s): failed to open stream: operation failed in %s on line %d
25resource(%d) of type (stream)
26bool(true)