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