summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug46051.phpt
blob: 49a58247c05159a0e7dbc1aa380acc58145c7d51 (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 (Exception $e) { }

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