note 117884 added to function.password-hash
| From: | VladimirMozhenkov at yahoo dot com | Date: | Wed, 26 Aug 2015 12:04:33 +0000 |
| Subject: | note 117884 added to function.password-hash | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-203474@lists.php.net to get a copy of this message | ||
Note that this function can return NULL. It does so if you provide an incorrect constant as an
algorythm. I had the following:
$password = password_hash($password1, PASSWORD_BDCRYPT, array( 'cost' => 10 ));
and i couldn't understand why i kept having NULL written in $password; it was a simple fact
that the constant was PASSWORD_BCRYPT.
----
Server IP: 72.52.91.14
Probable Submitter: 85.175.19.201
----
Manual Page -- http://php.net/manual/en/function.password-hash.php
Edit -- https://master.php.net/note/edit/117884
Del: integrated -- https://master.php.net/note/delete/117884/integrated
Del: useless -- https://master.php.net/note/delete/117884/useless
Del: bad code -- https://master.php.net/note/delete/117884/bad+code
Del: spam -- https://master.php.net/note/delete/117884/spam
Del: non-english -- https://master.php.net/note/delete/117884/non-english
Del: in docs -- https://master.php.net/note/delete/117884/in+docs
Del: other reasons-- https://master.php.net/note/delete/117884
Reject -- https://master.php.net/note/reject/117884
Search -- https://master.php.net/manage/user-notes.php