Download src/php/php-src/ext/hash/tests/bug64745.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 396 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/hash/tests/bug64745.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/hash/tests/bug64745.phpt
-
curl -L -o bug64745.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/hash/tests/bug64745.phpt
396 Bytes
| --TEST-- | |
| Bug #64745 (hash_pbkdf2() truncates data when using default length and hex output) | |
| --FILE-- | |
| $hash = hash_pbkdf2('sha1', 'password', 'salt', 1, 0); | |
| $rawHash = hash_pbkdf2('sha1', 'password', 'salt', 1, 0, true); | |
| var_dump($hash); | |
| var_dump(bin2hex($rawHash)); | |
| --EXPECT-- | |
| string(40) "0c60c80f961f0e71f3a9b524af6012062fe037a6" | |
| string(40) "0c60c80f961f0e71f3a9b524af6012062fe037a6" | |