1--TEST--
2Test registering of functions
3--PHPDBG--
4R testfunc
5testfunc 1 2 3
6R var_dump
7var_dump foo
8q
9--FILE--
10<?php
11function testfunc() {
12    var_dump(func_get_args());
13}
14?>
15--EXPECTF--
16[Successful compilation of %s]
17prompt> [Registered testfunc]
18prompt> array(3) {
19  [0]=>
20  int(1)
21  [1]=>
22  int(2)
23  [2]=>
24  int(3)
25}
26
27prompt> [Registered var_dump]
28prompt> string(3) "foo"
29
30prompt>
31