![]() ![]() | ![]() |
1.1 ! misho 1: --TEST-- ! 2: Bug #35740 (touch() opened file raises a warning) ! 3: --FILE-- ! 4: <?php ! 5: $file = __DIR__ . '/' . '__tmp_35740.dat'; ! 6: file_put_contents($file, 'test'); ! 7: $f = fopen($file, 'r'); ! 8: touch($file); ! 9: fclose($f); ! 10: @unlink($file); ! 11: echo "ok"; ! 12: ?> ! 13: --EXPECT-- ! 14: ok