1--TEST--
2ReflectionConstant double construct call
3--FILE--
4<?php
5
6const C1 = 42;
7const C2 = 43;
8
9$r = new ReflectionConstant('C' . mt_rand(1, 1));
10var_dump($r);
11
12$r->__construct('C' . mt_rand(2, 2));
13var_dump($r);
14
15?>
16--EXPECT--
17object(ReflectionConstant)#1 (1) {
18  ["name"]=>
19  string(2) "C1"
20}
21object(ReflectionConstant)#1 (1) {
22  ["name"]=>
23  string(2) "C2"
24}
25