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

$x = new splfileinfo(__FILE__);

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

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