Seems to return FALSE if file does not exists... (PHP 5.3.4)
(PHP 5 >= 5.1.2, PHP 7)
SplFileInfo::getSize — Gets file size
Returns the filesize in bytes for the file referenced.
This function has no parameters.
The filesize in bytes.
A RuntimeException will be thrown if the file does not exist or an error occurs.
Seems to return FALSE if file does not exists... (PHP 5.3.4)
if use it as SplFileInfo::getSize - it return false if file not found
if use it as SplFileObject::getSize - it generate RuntimeException: SplFileObject::__construct(my-file): failed to open stream: No such file or directory
Check http://php.net/manual/en/function.filesize.php#115792 for fast and reliable version of filesize for files >2gb on 32 bit systems.