Download src/php/php-src/Zend/tests/backtrace/bug39445.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 297 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/backtrace/bug39445.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/backtrace/bug39445.phpt
-
curl -L -o bug39445.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/backtrace/bug39445.phpt
297 Bytes
| --TEST-- | |
| Bug #39445 (Calling debug_backtrace() in the __toString() function produces a crash) | |
| --FILE-- | |
| class test { | |
| public function __toString() { | |
| debug_backtrace(); | |
| return 'lowercase'; | |
| } | |
| } | |
| $test = new test(); | |
| echo strtoupper($test); | |
| --EXPECT-- | |
| LOWERCASE | |