Bug #55717 [Opn->Bgs]: Crypt returns "*0" instead of hashed string.
| From: | pajoye@php.net | Date: | Sat, 17 Sep 2011 19:46:27 +0000 |
| Subject: | Bug #55717 [Opn->Bgs]: Crypt returns "*0" instead of hashed string. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-163642@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55717&edit=1
ID: 55717
Updated by: pajoye@php.net
Reported by: gelliott000 at yahoo dot ca
Summary: Crypt returns "*0" instead of hashed string.
-Status: Open
+Status: Bogus
Type: Bug
Package: *Encryption and hash functions
Operating System: FreeBSD 7.2
PHP Version: 5.3.8
Block user comment: N
Private report: N
New Comment:
ah, sorry, I misread the *0 part. Please see the documentation (salt length,
return value on failure).
Previous Comments:
------------------------------------------------------------------------
[2011-09-17 19:34:11] gelliott000 at yahoo dot ca
I have been able to reproduce the bug under Ubuntu Linux (2.6.32) and a clean 5.3.8 release
download: PHP 5.3.8 (cli) (built: Sep 17 2011 14:59:12)
------------------------------------------------------------------------
[2011-09-17 18:30:25] pajoye@php.net
Please try using a plain PHP fetched either from our svn or from a release
download.
------------------------------------------------------------------------
[2011-09-17 18:15:37] gelliott000 at yahoo dot ca
Description:
------------
PHP 5.3.8 with Suhosin-Patch (cli) (built: Sep 12 2011 10:57:59)
Using the crypt() function with string "veronica" and salt "_Q" returns an
unexpected string: "*0".
Was expecting a proper hashed string beginning with the salt string to be returned.
Test script:
---------------
<?php
echo crypt("veronica","_Q");
?>
Expected result:
----------------
A hashed string beginning with the salt string to be returned.
Actual result:
--------------
The string "*0" is returned.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55717&edit=1