Download src/php/php-src/ext/hash/tests/bug81714.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 291 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/hash/tests/bug81714.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/hash/tests/bug81714.phpt
-
curl -L -o bug81714.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/hash/tests/bug81714.phpt
291 Bytes
| --TEST-- | |
| Bug #81714 (segfault when serializing finalized HashContext) | |
| --FILE-- | |
| $h = hash_init('md5'); | |
| hash_final($h); | |
| try { | |
| serialize($h); | |
| } catch (Exception $ex) { | |
| var_dump($ex->getMessage()); | |
| } | |
| --EXPECTF-- | |
| string(52) "HashContext for algorithm "md5" cannot be serialized" | |