https://bugzilla.wikimedia.org/show_bug.cgi?id=44142

       Web browser: ---
            Bug ID: 44142
           Summary: mcrypt_rand_iv() not reliable with MCRYPT_DEV_URANDOM
                    on Windows
           Product: MediaWiki
           Version: 1.20.2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Installer
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---

Upstream bug is https://bugs.php.net/bug.php?id=52523 but I experienced this
today with PHP 5.3.5 on a host where phpinfo reports the system is "Windows NT
A1-WHW-B69 6.0 build 6002 (Windows Server 2008 Web Server Edition Service Pack
2) i586"

Webserver died with a fatal error during installation:


           PHP Fatal error:  mcrypt_create_iv() [<a
           href='function.mcrypt-create-iv'>function.mcrypt-create-iv</a>]:
           Could not gather sufficient random data in
           E:\...\Web\includes\CryptRand.php on line 309

As far as I could tell, There was no way to work around this or even see if the
error would pop up in the code, so I had to hack CryptRand.php so that
MCRYPT_RAND was used instead of MCRYPT_DEV_URANDOM.

Only then could installation complete.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to