Download src/php/php-src/Zend/tests/backtrace/bug_debug_backtrace.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 331 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/backtrace/bug_debug_backtrace.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/backtrace/bug_debug_backtrace.phpt
-
curl -L -o bug_debug_backtrace.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/backtrace/bug_debug_backtrace.phpt
331 Bytes
| --TEST-- | |
| Bug - crash in debug_backtrace when trace starts in eval | |
| --FILE-- | |
| function foo() { | |
| bar(); | |
| } | |
| function bar() { | |
| boo(); | |
| } | |
| function boo(){ | |
| debug_print_backtrace(); | |
| } | |
| eval("foo();"); | |
| echo "Done\n"; | |
| --EXPECTF-- | |
| #0 %s(%d): boo() | |
| #1 %s(%d): bar() | |
| #2 %s(%d) : eval()'d code(1): foo() | |
| #3 %s(%d): eval() | |
| Done | |