Some calls to SplFileInfo translate errors to RuntimeExceptions

This could be pulled in without the test.
However the test will fail because no warnings are thrown (See #2999)

This tries to fix zend/bad/ext/spl/tests/DirectoryIterator_getInode_error.php