我得到这个错误与PHPass:PHPass错误:函数名必须是一个字符串
Warning: is_readable(): open_basedir restriction in effect. File(/dev/urandom) is not within the allowed path(s): (/customers/example.com/example.com/httpd.www:/customers/example.com/example.com/httpd.private:/customers/example.com/example.com/tmp:/customers/example.com/example.com:/var/www/diagnostics:/usr/share/php) in /customers/example.com/example.com/httpd.www/example/scripts/PasswordHash.php on line 51 Fatal error: Function name must be a string in /customers/example.com/example.com/httpd.www/example/register.php on line 82
线51-54上PasswordHash.php(PHPass):
if (is_readable('/dev/urandom') &&
($fh = @fopen('/dev/urandom', 'rb'))) {
$output = fread($fh, $count);
fclose($fh);
线路81-84 register.php(还包括:前两行的要求和$散列器):
require('scripts/PasswordHash.php');
$hasher = new PasswordHash(8, false);
$hash = $hasher->HashPassword($pw);
if($strlen($hash) < 20){
$notice[] = "Error";
}
那么,这是什么错误呢?
没有解答:
通过抑制错误版本phpass resolves this issue的1.8?没有人知道这个答案吗? –