Reworked test to check for PHP version

`password_hash` is PHP 5.5. Instead of adding the sanity check in the code,
I've opted to put it in the test to ditch the overhead of having to make that
check for every request.
This commit is contained in:
Josh Sherman 2014-10-02 21:34:09 -04:00
parent 1b365bcff0
commit 31f4c32fb0
2 changed files with 11 additions and 2 deletions

View file

@ -177,7 +177,7 @@ class Resource extends Object
if ($function == 'password_hash')
{
$global[$variable] = \password_hash($value, PASSWORD_DEFAULT);
$global[$variable] = password_hash($value, PASSWORD_DEFAULT);
}
else
{