repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
This fixes a bug in PHP/HH's crypt_blowfish implementation that can cause a short...
[hiphop-php.git]
/
hphp
/
test
/
slow
/
ext_string
/
t143363292.php
blob
e07709cbbef85e223c888d56340c761458b887c5
1
<
?hh
2
3
<<
__EntryPoint
>>
function
main
():
void
{
4
for
(
$i
=
0
;
$i
<
23
;
$i
++
) {
5
$salt
=
'
$2y
$04
$'
.
str_repeat
(
'0'
,
$i
) .
'$'
;
6
$result
=
crypt
(
"foo"
,
$salt
);
7
var_dump
(
$salt
);
8
var_dump
(
$result
);
9
var_dump
(
$result
===
$salt
);
10
}
11
12
}