xref: /php-src/ext/spl/tests/bug46051.phpt (revision b10416a6)
1--TEST--
2Bug #46051 (SplFileInfo::openFile - memory overlap)
3--FILE--
4<?php
5
6$x = new splfileinfo(__FILE__);
7
8try {
9    $x->openFile("", false, []);
10} catch (TypeError $e) { }
11
12var_dump($x->getPathName());
13?>
14--EXPECTF--
15string(%d) "%sbug46051.php"
16