Download src/php/php-src/sapi/phpdbg/tests/match_breakpoints_001.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 541 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/sapi/phpdbg/tests/match_breakpoints_001.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/sapi/phpdbg/tests/match_breakpoints_001.phpt
-
curl -L -o match_breakpoints_001.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/sapi/phpdbg/tests/match_breakpoints_001.phpt
541 Bytes
| --TEST-- | |
| Test match default breakpoint with variable assignment | |
| --INI-- | |
| opcache.enable_cli=0 | |
| --PHPDBG-- | |
| b 5 | |
| b 10 | |
| r | |
| q | |
| --EXPECTF-- | |
| [Successful compilation of %s.php] | |
| prompt> [Breakpoint #0 added at %s.php:5] | |
| prompt> [Breakpoint #1 added at %s.php:10] | |
| prompt> [Breakpoint #1 at %s.php:10, hits: 1] | |
| >00010: default => 'bar', // breakpoint #1 | |
| 00011: }; | |
| 00012: | |
| prompt> | |
| --FILE-- | |
| $foo = match (0) { | |
| 0 => 'foo', | |
| default => 'bar', // breakpoint #0 | |
| }; | |
| $foo = match (1) { | |
| 0 => 'foo', | |
| default => 'bar', // breakpoint #1 | |
| }; | |