-
Notifications
You must be signed in to change notification settings - Fork 420
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
No hash being returned with PHP5.3.8 #22
Comments
Can you provide the output of Also, can you turn on all error reporting (if you haven't done so already) by doing Thanks Anthony |
PHP version output: Error reporting shows no messages at all. |
Can you run
What does it output? Additionally, if you manually run the following via a PHP file, can you post the results?
|
The output of version-test.php is:
Your code example gave us:
|
That's really weird. Can you try editing line 5 of version-test.php from:
To
I'm not sure what's happening |
@ircmaxell You asked him to var_dump($hash), didn't you mean $test? |
same thing is happening to me as well. Test for functionality of compat library: Fail |
Can you try this snippet? $hash = '$2y$04$usesomesillystringfore7hnbRJHxXVLeakoG8K30oukPsA.ztMG';
$test = crypt("password", $hash);
var_dump($test); |
A slightly more meaningful test, since it prints both $hash = '$2y$04$usesomesillystringfore7hnbRJHxXVLeakoG8K30oukPsA.ztMG';
$test = crypt("password", $hash);
var_dump(array($hash, $test)); |
Hello,
I just implemented this excellent library (thanks for creating it) a few days ago.
Now I got a report from a developer using PHP 5.3.8-ZS5.5.0 (cli) - which is perfectly matching the requirements - that password_hash returns false instead of a hash.
Seems like crypt() function reported a failure, but I have no clue how to find out why.
Testing the same against PHP 5.3.14 works without any problems.
Any idea ?
The text was updated successfully, but these errors were encountered: