xref: /PHP-7.2/ext/standard/tests/file/bug45985.phpt (revision 5ec35396)
1--TEST--
2Bug #35740 (touch() opened file raises a warning)
3--FILE--
4<?php
5$file = __DIR__ . '/' . '__tmp_35740.dat';
6file_put_contents($file, 'test');
7$f = fopen($file, 'r');
8touch($file);
9fclose($f);
10@unlink($file);
11echo "ok";
12?>
13--EXPECT--
14ok
15