summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug46051.phpt
blob: 535dd2ddaecc80ef5908e7f1c766c72a558b4255 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
Bug #46051 (SplFileInfo::openFile - memory overlap)
--FILE--
<?php

$x = new splfileinfo(__FILE__);

try {
    $x->openFile("", false, []);
} catch (TypeError $e) { }

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