]> granicus.if.org Git - php/commitdiff
- update test
authorPierre Joye <pajoye@php.net>
Tue, 23 Feb 2010 17:46:10 +0000 (17:46 +0000)
committerPierre Joye <pajoye@php.net>
Tue, 23 Feb 2010 17:46:10 +0000 (17:46 +0000)
ext/standard/tests/strings/bug51059.phpt

index baf8a12c9cb1bc206024447c9c11e0ae7a6f21ef..f2cbe9deff899b7a01ff971d52668dc70a0531f2 100644 (file)
@@ -2,8 +2,8 @@
 Bug #51059 crypt() segfaults on certain salts
 --FILE--
 <?php
-
-if (crypt('a', '_') === FALSE) echo 'OK';
+$res = crypt('a', '_');
+if ($res == '*0' || $res == '*1') echo 'OK';
 else echo 'Not OK';
 
 ?>