Download src/php/php-src/ext/pcre/tests/bug38600.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 251 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pcre/tests/bug38600.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/pcre/tests/bug38600.phpt
-
curl -L -o bug38600.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/pcre/tests/bug38600.phpt
251 Bytes
| --TEST-- | |
| Bug #38600 (infinite loop in pcre with extended class) | |
| --FILE-- | |
| $foo = 'bla bla bla'; | |
| var_dump(preg_match('/(?<!\w)(0x[\p{N}]+[lL]?|[\p{Nd}]+(e[\p{Nd}]*)?[lLdDfF]?)(?!\w)/', $foo, $m)); | |
| var_dump($m); | |
| --EXPECT-- | |
| int(0) | |
| array(0) { | |
| } | |