--TEST-- Bug #46051 (SplFileInfo::openFile - memory overlap) --FILE-- openFile(NULL, NULL, []); } catch (TypeError $e) { } var_dump($x->getPathName()); ?> --EXPECTF-- string(%d) "%sbug46051.php"