summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug46051.phpt
blob: cebe8a52d7efa1e6e1c1a0964c1b700671a7d2f9 (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(NULL, NULL, []);
} catch (TypeError $e) { }

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