xref: /PHP-7.2/sapi/phpdbg/tests/run_001.phpt (revision 80bb4fd4)
1--TEST--
2Test argv passing
3--PHPDBG--
4r
5r 1 2 3
6r
7q
8--EXPECTF--
9[Successful compilation of %s]
10prompt> int(5)
11array(5) {
12  [0]=>
13  string(%d) "%s"
14  [1]=>
15  string(2) "--"
16  [2]=>
17  string(1) "1"
18  [3]=>
19  string(1) "2"
20  [4]=>
21  string(1) "3"
22}
23[Script ended normally]
24prompt> int(5)
25array(4) {
26  [0]=>
27  string(%d) "%s"
28  [1]=>
29  string(1) "1"
30  [2]=>
31  string(1) "2"
32  [3]=>
33  string(1) "3"
34}
35[Script ended normally]
36prompt> int(5)
37array(5) {
38  [0]=>
39  string(%d) "%s"
40  [1]=>
41  string(2) "--"
42  [2]=>
43  string(1) "1"
44  [3]=>
45  string(1) "2"
46  [4]=>
47  string(1) "3"
48}
49[Script ended normally]
50prompt>
51--ARGS--
521 2 3
53--FILE--
54<?php
55
56var_dump($argc, $argv);
57