mirror of
https://github.com/php/php-src.git
synced 2024-12-26 18:29:37 +08:00
25 lines
354 B
Plaintext
25 lines
354 B
Plaintext
|
--TEST--
|
||
|
Basic method breakpoints
|
||
|
--PHPDBG--
|
||
|
b bar::foo
|
||
|
r
|
||
|
q
|
||
|
--EXPECTF--
|
||
|
[Successful compilation of %s]
|
||
|
prompt> [Breakpoint #0 added at bar::foo]
|
||
|
prompt> [Breakpoint #0 in bar::foo() at %s:5, hits: 1]
|
||
|
>00005: var_dump($bar);
|
||
|
00006: }
|
||
|
00007: }
|
||
|
prompt>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
class bar {
|
||
|
function foo($bar) {
|
||
|
var_dump($bar);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
(new bar)->foo("test");
|