Issue 245. SplFileInfo::getExtension is not supported on old PHP versions.

PHP 5.3.3 does not support SplFileInfo::getExtension.