1--TEST--
2Bug #46051 (SplFileInfo::openFile - memory overlap)
3--FILE--
4<?php
5
6$x = new splfileinfo(__FILE__);
7
8try {
9 $x->openFile(NULL, NULL, []);
10} catch (TypeError $e) { }
11
12var_dump($x->getPathName());
13?>
14--EXPECTF--
15string(%d) "%sbug46051.php"
16