ru_php/ext/spl/tests/gh16477-2.phpt

20 lines
330 B
PHP

--TEST--
GH-16477-2: Memory leak when calling SplTempFileObject::__constructor() twice
--FILE--
<?php
$obj = new SplTempFileObject();
try {
$obj->__construct();
} catch (Throwable $e) {
echo $e::class, ': ', $e->getMessage(), PHP_EOL;
}
$obj->__debugInfo();
?>
DONE
--EXPECT--
Error: Cannot call constructor twice
DONE