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

e: The test will succeed with the diff from #2999 but with the diff `quick/is_dir.php` fails for example.