xref: /PHP-7.4/ext/spl/tests/bug46051.phpt (revision 5af586be)
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--
14string(%d) "%sbug46051.php"
15