1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00
Files
archived-php-src/ext/spl/tests/bug46051.phpt
2020-09-07 19:02:02 +02:00

16 lines
250 B
PHP

--TEST--
Bug #46051 (SplFileInfo::openFile - memory overlap)
--FILE--
<?php
$x = new splfileinfo(__FILE__);
try {
$x->openFile(NULL, NULL, []);
} catch (TypeError $e) { }
var_dump($x->getPathName());
?>
--EXPECTF--
string(%d) "%sbug46051.php"