php-src/ext/reflection/tests/ReflectionExtension_double_construct.phpt
Niels Dossche f0f666ba3f
Fix GH-16601: Memory leak in Reflection constructors
Additionally fixes wrong behaviour in ReflectionParameter when you first
have a construction that uses an object and the subsequent doesn't.

Closes GH-16672.
2024-11-02 19:35:20 +01:00

20 lines
329 B
PHP

--TEST--
ReflectionExtension double construct call
--FILE--
<?php
$r = new ReflectionExtension('standard');
var_dump($r);
$r->__construct('standard');
var_dump($r);
?>
--EXPECT--
object(ReflectionExtension)#1 (1) {
["name"]=>
string(8) "standard"
}
object(ReflectionExtension)#1 (1) {
["name"]=>
string(8) "standard"
}