我用 PHPass 得到这个错误:
警告:is_readable():open_basedir 限制生效。文件(/dev/urandom)不在允许的路径内:(/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) 在 /customers/example.com/example.com/httpd。第 51 行的 www/example/scripts/PasswordHash.php 致命错误:函数名称必须是第 82 行 /customers/example.com/example.com/httpd.www/example/register.php 中的字符串
PasswordHash.php (PHPass) 上的第 51-54 行:
if (is_readable('/dev/urandom') &&
($fh = @fopen('/dev/urandom', 'rb'))) {
$output = fread($fh, $count);
fclose($fh);
register.php 的第 81-84 行(还包括:前两行是 require 和 $hasher):
require('scripts/PasswordHash.php');
$hasher = new PasswordHash(8, false);
$hash = $hasher->HashPassword($pw);
if($strlen($hash) < 20){
$notice[] = "Error";
}
那么,这个错误是什么意思呢?