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