Czy mogę uzyskać dostęp do / dev / urandom przy użyciu open_basedir?

Chcę użyć phpass-0.3 w Codeigniter, ale otrzymuję następujący błąd z powoduopen_basedir:

Wystąpił błąd PHP
Dotkliwość: Ostrzeżenie
Wiadomość: is_readable () [function.is-readable]: obowiązujące ograniczenie open_basedir. Plik (/ dev / urandom) nie mieści się w dozwolonych ścieżkach: (/ home / phginep: / usr / lib / php: / usr / local / lib / php: / tmp)
Nazwa pliku: phpass-0.3 / PasswordHash.php
Numer linii: 51

Poniższy kod:

<code>function get_random_bytes($count)
{
    $output = '';
    if (is_readable('/dev/urandom') &&    //Line Number: 51
        ($fh = @fopen('/dev/urandom', 'rb'))) {
        $output = fread($fh, $count);
        fclose($fh);
    }

    if (strlen($output) < $count) {
        $output = '';
        for ($i = 0; $i < $count; $i += 16) {
            $this->random_state =
                md5(microtime() . $this->random_state);
            $output .=
                pack('H*', md5($this->random_state));
        }
        $output = substr($output, 0, $count);
    }

    return $output;
}
</code>

Czy jest coś, co mogę zrobić, aby obejść to?

questionAnswers(4)

yourAnswerToTheQuestion