1--TEST-- 2Bug #51059 crypt() segfaults on certain salts 3--FILE-- 4<?php 5$res = crypt('a', '_'); 6if ($res === '*0' || $res === '*1') echo 'OK'; 7else echo 'Not OK'; 8 9?> 10--EXPECT-- 11OK 12