mirror of
https://github.com/php/php-src.git
synced 2026-03-26 09:12:14 +01:00
16 lines
250 B
PHP
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"
|