1--TEST--
2ReflectionParameter::isDefaultValueConstant() should also work for parameters of internal functions
3--FILE--
4<?php
5$class = new ReflectionClass('DateTime');
6$method = $class->getMethod('setTime');
7
8foreach ($method->getParameters() as $parameter) {
9    try {
10        var_dump($parameter->isDefaultValueConstant());
11    } catch (ReflectionException $exception) {
12        echo $exception->getMessage() . "\n";
13    }
14}
15
16echo "----------\n";
17
18$class = new ReflectionClass('DateTimeZone');
19$method = $class->getMethod('listIdentifiers');
20
21foreach ($method->getParameters() as $parameter) {
22    try {
23        var_dump($parameter->isDefaultValueConstant());
24    } catch (ReflectionException $exception) {
25        echo $exception->getMessage() . "\n";
26    }
27}
28?>
29--EXPECT--
30Internal error: Failed to retrieve the default value
31Internal error: Failed to retrieve the default value
32bool(false)
33bool(false)
34----------
35bool(true)
36bool(false)
37