1--TEST--
2Skipping over default parameters
3--FILE--
4<?php
5
6function test1($a = 'a', $b = 'b') {
7    echo "a: $a, b: $b\n";
8}
9
10function test2($a = SOME_CONST, $b = 'b') {
11    echo "a: $a, b: $b\n";
12}
13
14function test3($a = SOME_OTHER_CONST, $b = 'b') {
15    echo "a: $a, b: $b\n";
16}
17
18test1(b: 'B');
19
20define('SOME_CONST', 'X');
21test2(b: 'B');
22
23// NB: We also want to test the stack trace.
24test3(b: 'B');
25
26?>
27--EXPECTF--
28a: a, b: B
29a: X, b: B
30
31Fatal error: Uncaught Error: Undefined constant "SOME_OTHER_CONST" in %s:%d
32Stack trace:
33#0 %s(%d): test3(NULL, 'B')
34#1 {main}
35  thrown in %s on line %d
36