1--TEST-- 2Test filesize() function: usage variations - size of files 3--CREDITS-- 4Dave Kelsey <d_kelsey@uk.ibm.com> 5--FILE-- 6<?php 7/* 8 * Prototype : int filesize ( string $filename ); 9 * Description : Returns the size of the file in bytes, or FALSE 10 * (and generates an error of level E_WARNING) in case of an error. 11 */ 12 13echo "*** Testing filesize(): usage variations ***\n"; 14 15/* null, false, "", " " */ 16var_dump( filesize(NULL) ); 17var_dump( filesize(false) ); 18var_dump( filesize('') ); 19var_dump( filesize(' ') ); 20var_dump( filesize('|') ); 21echo "*** Done ***\n"; 22?> 23--EXPECTF-- 24*** Testing filesize(): usage variations *** 25bool(false) 26bool(false) 27bool(false) 28 29Warning: filesize(): stat failed for in %s on line %d 30bool(false) 31 32Warning: filesize(): stat failed for | in %s on line %d 33bool(false) 34*** Done *** 35