mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00

Additionally fixes wrong behaviour in ReflectionParameter when you first have a construction that uses an object and the subsequent doesn't. Closes GH-16672.
21 lines
326 B
PHP
21 lines
326 B
PHP
--TEST--
|
|
ReflectionObject double construct call
|
|
--FILE--
|
|
<?php
|
|
|
|
$obj = new stdClass;
|
|
$r = new ReflectionObject($obj);
|
|
var_dump($r);
|
|
$r->__construct($obj);
|
|
var_dump($r);
|
|
|
|
?>
|
|
--EXPECT--
|
|
object(ReflectionObject)#2 (1) {
|
|
["name"]=>
|
|
string(8) "stdClass"
|
|
}
|
|
object(ReflectionObject)#2 (1) {
|
|
["name"]=>
|
|
string(8) "stdClass"
|
|
}
|