php-src/ext/spl/tests/bug46051.phpt

15 lines
255 B
PHP

--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"