bug46051.phpt   [plain text]


--TEST--
Bug #46051 (SplFileInfo::openFile - memory overlap)
--FILE--
<?php

$x = new splfileinfo(__FILE__);

try {
$x->openFile(NULL, NULL, NULL);
} catch (Exception $e) { }

var_dump($x->getPathName());
--EXPECTF--
%unicode|string%(%d) "%sbug46051.php"