1--TEST--
2Test filesize() function: basic functionaity
3--FILE--
4<?php
5echo "*** Testing size of files and directories with filesize() ***\n";
6
7$file_path = __DIR__;
8
9var_dump( filesize(__FILE__) );
10var_dump( filesize(".") );
11
12/* Empty file */
13$file_name = $file_path."/filesize_basic.tmp";
14$file_handle = fopen($file_name, "w");
15fclose($file_handle);
16var_dump( filesize($file_name) );
17
18echo "*** Done ***\n";
19?>
20--CLEAN--
21<?php
22$file_path = __DIR__;
23$file_name = $file_path."/filesize_basic.tmp";
24unlink($file_name);
25?>
26--EXPECTF--
27*** Testing size of files and directories with filesize() ***
28int(%d)
29int(%d)
30int(0)
31*** Done ***
32