1--TEST--
2touch() with times
3--CREDITS--
4Dave Kelsey <d_kelsey@uk.ibm.com>
5--SKIPIF--
6<?php
7if (substr(PHP_OS, 0, 3) == 'WIN') {
8    die('skip.. Not valid for Windows');
9}
10?>
11--FILE--
12<?php
13
14$filename = __DIR__."/touch_variation1.dat";
15
16var_dump(touch($filename, 101));
17var_dump(filemtime($filename));
18var_dump(fileatime($filename));
19
20@unlink($filename);
21
22@unlink($filename);
23var_dump(touch($filename, 100, 102));
24var_dump(filemtime($filename));
25var_dump(fileatime($filename));
26
27@unlink($filename);
28echo "Done\n";
29
30?>
31--EXPECT--
32bool(true)
33int(101)
34int(101)
35bool(true)
36int(100)
37int(102)
38Done
39