1--TEST--
2Check that isDefaultValueConstant() does not leak
3--FILE--
4<?php
5
6class Test {
7    public function method($param = [123]) {}
8}
9
10$rp = new ReflectionParameter(['Test', 'method'], 'param');
11var_dump($rp->isDefaultValueAvailable());
12var_dump($rp->isDefaultValueConstant());
13var_dump($rp->getDefaultValue());
14
15?>
16--EXPECT--
17bool(true)
18bool(false)
19array(1) {
20  [0]=>
21  int(123)
22}
23