Annotation of embedaddon/php/ext/standard/tests/strings/bug54721.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #54721 (Different Hashes on Windows, BSD and Linux on wrong Salt size)
3: --FILE--
4: <?php
5: echo crypt("", '$1$dW0.is5.$10CH101gGOr1677ZYd517.') . "\n";
6: echo crypt("b", '$1$dW0.is5.$10CH101gGOr1677ZYd517.') . "\n";
7: echo crypt("bu", '$1$dW0.is5.$10CH101gGOr1677ZYd517.') . "\n";
8: echo crypt("bug", '$1$dW0.is5.$10CH101gGOr1677ZYd517.') . "\n";
9: echo crypt("pass", '$1$dW0.is5.$10CH101gGOr1677ZYd517.') . "\n";
10: echo crypt("buged", '$1$dW0.is5.$10CH101gGOr1677ZYd517.') . "\n";
11: echo crypt("aaaaaaaaaaaaaaaaaaaaaaaaa ", '$1$dW0.is5.$10CH101gGOr1677ZYd517.') . "\n";
12: ?>
13: --EXPECT--
14: $1$dW0.is5.$I0iqTYHPzkP4YnRgnXxZW0
15: $1$dW0.is5.$KaspRpPQ9U7Xb5Vv5c.WE/
16: $1$dW0.is5.$X9G1x/Ep8zYQSrU4/lKUg.
17: $1$dW0.is5.$wE5Rz/HxPtDMfqil6kK980
18: $1$dW0.is5.$2E4/ZDY1vr73HqLl1bLs9.
19: $1$dW0.is5.$lvGhphTQwqgKxWhWwYERr1
20: $1$dW0.is5.$XzsWcLSBj2BvhOKH0xdpZ0
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>