1--TEST--
2Bug #73058 crypt broken when salt is 'too' long
3--FILE--
4<?php
5$pass = 'secret';
6
7$salt = '$2y$07$usesomesillystringforsalt$';
8var_dump(crypt($pass, $salt));
9
10$salt = '$2y$07$usesomesillystringforsaltzzzzzzzzzzzzz$';
11var_dump(crypt($pass, $salt));
12
13$salt = '$2y$07$usesomesillystringforx';
14var_dump(crypt($pass, $salt));
15
16?>
17==OK==
18--EXPECT--
19string(60) "$2y$07$usesomesillystringforex.u2VJUMLRWaJNuw0Hu2FvCEimdeYVO"
20string(60) "$2y$07$usesomesillystringforex.u2VJUMLRWaJNuw0Hu2FvCEimdeYVO"
21string(60) "$2y$07$usesomesillystringforuw2Gm1ef7lMsvtzSK2p/14F0q1e8uOCO"
22==OK==
23