1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 02:33:17 +02:00
Files
archived-php-src/sapi/phpdbg/tests/breakpoints_005.phpt
Gabriel Caruso 4aabfe911e Revert "Update versions for PHP 8.0.21"
This reverts commit 6eedacdf15.
2022-07-06 12:06:48 +02:00

28 lines
403 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");