My request for the method SplFileInfo::getExtension() is now in the php trunk, yay!

Thank you, salathe!