Skip to content

Commit ed22e97

Browse files
Crellkrakjoe
authored andcommitted
Add test for catching all trailing arguments.
1 parent 14460c4 commit ed22e97

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Zend/tests/partial_function/multi-parameter.phpt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,15 @@ $p3 = volume(?, 5, ?);
1414
print $p1(5, 9) . PHP_EOL;
1515
print $p2(3, 5) . PHP_EOL;
1616
print $p3(3, 9) . PHP_EOL;
17+
18+
// Because of the way trailing arguments are handled,
19+
// a single ? works for all arguments.
20+
$p4 = volume(?);
21+
print $p4(3, 5, 9);
22+
1723
?>
1824
--EXPECTF--
1925
135
2026
135
2127
135
28+
135

0 commit comments

Comments
 (0)