mirror of
https://github.com/php/php-src.git
synced 2025-01-15 16:24:37 +08:00
378a05f0de
Also add a few more in-depth tests related to $argv, breakpoints and uncaught exceptions
57 lines
665 B
PHP
57 lines
665 B
PHP
--TEST--
|
|
Test argv passing
|
|
--PHPDBG--
|
|
r
|
|
r 1 2 3
|
|
r
|
|
q
|
|
--EXPECTF--
|
|
[Successful compilation of %s]
|
|
prompt> int(5)
|
|
array(5) {
|
|
[0]=>
|
|
string(%d) "%s"
|
|
[1]=>
|
|
string(2) "--"
|
|
[2]=>
|
|
string(1) "1"
|
|
[3]=>
|
|
string(1) "2"
|
|
[4]=>
|
|
string(1) "3"
|
|
}
|
|
[Script ended normally]
|
|
prompt> int(5)
|
|
array(4) {
|
|
[0]=>
|
|
string(%d) "%s"
|
|
[1]=>
|
|
string(1) "1"
|
|
[2]=>
|
|
string(1) "2"
|
|
[3]=>
|
|
string(1) "3"
|
|
}
|
|
[Script ended normally]
|
|
prompt> int(5)
|
|
array(5) {
|
|
[0]=>
|
|
string(%d) "%s"
|
|
[1]=>
|
|
string(2) "--"
|
|
[2]=>
|
|
string(1) "1"
|
|
[3]=>
|
|
string(1) "2"
|
|
[4]=>
|
|
string(1) "3"
|
|
}
|
|
[Script ended normally]
|
|
prompt>
|
|
--ARGS--
|
|
'1' '2' '3'
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump($argc, $argv);
|