Note that due to realpath caching this method will return false when the file has been renamed or unlinked by other processes.
Example:
<?php
$info = new SplFileInfo('example.php');
$info->getRealPath(); // /path/to/example.php
rename('example.php', 'foobar.php');
$info->getRealPath(); // false
?>