1--TEST--
2touch() - ensure touch does not delete existing file.
3--CREDITS--
4Dave Kelsey <d_kelsey@uk.ibm.com>
5--FILE--
6<?php
7
8
9$filename = dirname(__FILE__)."/touch_variation2.dat";
10$fp=fopen($filename,"w");
11fwrite ($fp,"mydata");
12fclose($fp);
13
14var_dump(touch($filename, 101));
15var_dump(file_get_contents($filename));
16
17@unlink($filename);
18echo "Done\n";
19
20?>
21--EXPECT--
22bool(true)
23string(6) "mydata"
24Done
25