Download src/php/php-src/Zend/tests/concat/bug81705.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 336 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/concat/bug81705.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/concat/bug81705.phpt
-
curl -L -o bug81705.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/concat/bug81705.phpt
336 Bytes
| --TEST-- | |
| Bug #81705 (type confusion/UAF on set_error_handler with concat operation) | |
| --FILE-- | |
| $arr = [0]; | |
| $my_var = str_repeat("a", 1); | |
| set_error_handler( | |
| function() use(&$my_var) { | |
| echo("error\n"); | |
| $my_var = 0x123; | |
| } | |
| ); | |
| $my_var .= $GLOBALS["arr"]; | |
| var_dump($my_var); | |
| --EXPECT-- | |
| error | |
| string(6) "aArray" |