mirror of
https://github.com/php/php-src.git
synced 2024-12-27 02:39:39 +08:00
378a05f0de
Also add a few more in-depth tests related to $argv, breakpoints and uncaught exceptions
29 lines
404 B
PHP
29 lines
404 B
PHP
--TEST--
|
|
Test breakpoint into function context
|
|
--PHPDBG--
|
|
b breakpoints_005.php:4
|
|
r
|
|
ev $bar
|
|
c
|
|
q
|
|
--EXPECTF--
|
|
[Successful compilation of %s]
|
|
prompt> [Breakpoint #0 added at %s:4]
|
|
prompt> [Breakpoint #0 at %s:4, hits: 1]
|
|
>00004: var_dump($bar);
|
|
00005: }
|
|
00006:
|
|
prompt> test
|
|
prompt> string(4) "test"
|
|
[Script ended normally]
|
|
prompt>
|
|
--FILE--
|
|
<?php
|
|
|
|
function foo($bar) {
|
|
var_dump($bar);
|
|
}
|
|
|
|
foo("test");
|
|
|