Remove internal usage of SplFileInfo::_bad_state_ex() method (#8318) * Use standard VM handling instead * Deprecate the method as it is now useless