Download src/php/php-src/Zend/tests/backtrace/bug28377.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 481 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/backtrace/bug28377.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/backtrace/bug28377.phpt
-
curl -L -o bug28377.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/backtrace/bug28377.phpt
481 Bytes
| --TEST-- | |
| Bug #28377 (debug_backtrace is intermittently passing args) | |
| --FILE-- | |
| function doit($a, $b) | |
| { | |
| $trace = debug_backtrace(); | |
| custom_callback('dereferenced', $trace); | |
| custom_callback('direct', debug_backtrace()); | |
| } | |
| function custom_callback($traceName, $btInfo) | |
| { | |
| echo $traceName ." -- args: "; | |
| echo isset($btInfo[0]['args']) ? count($btInfo[0]['args']) : 'does not exist'; | |
| echo "\n"; | |
| } | |
| doit('a','b'); | |
| --EXPECT-- | |
| dereferenced -- args: 2 | |
| direct -- args: 2 | |