summaryrefslogtreecommitdiff
path: root/ext/standard/tests/strings/bug62443.phpt
blob: 9e0dc38cfbc1f48ac215136426dcc55ea280fb09 (plain)
1
2
3
4
5
6
7
8
9
--TEST--
Bug #62443 Crypt SHA256/512 Segfaults With Malformed Salt
--FILE--
<?php
crypt("foo", '$5$'.chr(0).'abc');
crypt("foo", '$6$'.chr(0).'abc');
echo "OK!";
--EXPECT--
OK!