--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