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 = dirname(__FILE__)."/touch.dat";
15
16
17var_dump(touch($filename, 101));
18var_dump(filemtime($filename));
19var_dump(fileatime($filename));
20
21@unlink($filename);
22
23@unlink($filename);
24var_dump(touch($filename, 100, 102));
25var_dump(filemtime($filename));
26var_dump(fileatime($filename));
27
28@unlink($filename);
29echo "Done\n";
30
31?>
32--EXPECTF--
33bool(true)
34int(101)
35int(101)
36bool(true)
37int(100)
38int(102)
39Done