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