Suppress warnings from is_readable() when using open_basedir configuration #2

Merged
merged 1 commit into from Jan 20, 2015

Projects

None yet

2 participants

@rickard2
Contributor

When configured with open_basedir a PHP Warning is generated each time readability is determined:

    is_readable(): open_basedir restriction in effect. File(/dev/urandom) is not within the allowed path(s): (...) in vendor/kunststube/csrfp/Kunststube/CSRFP/CryptoProvider.php on line 23

This change should suppress these warnings, which should be fine since there is a fallback to using other sources for entropy.

@deceze deceze merged commit b931339 into deceze:master Jan 20, 2015
@deceze
Owner
deceze commented Jan 20, 2015

Very reasonable, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment