Download src/php/php-src/ext/mbstring/tests/bug72402.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 386 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/mbstring/tests/bug72402.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/mbstring/tests/bug72402.phpt
-
curl -L -o bug72402.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/mbstring/tests/bug72402.phpt
386 Bytes
| --TEST-- | |
| Bug #72402: _php_mb_regex_ereg_replace_exec - double free | |
| --EXTENSIONS-- | |
| mbstring | |
| --SKIPIF-- | |
| if (!function_exists('mb_ereg')) die('skip mbregex support not available'); | |
| --FILE-- | |
| function throwit() { | |
| throw new Exception('it'); | |
| } | |
| $var10 = "throwit"; | |
| try { | |
| $var14 = mb_ereg_replace_callback("", $var10, ""); | |
| } catch(Exception $e) {} | |
| DONE | |
| --EXPECT-- | |
| DONE | |