mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
15 lines
245 B
PHP
15 lines
245 B
PHP
--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
|