|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-10-20 11:16 UTC] ab@php.net
-Status: Open
+Status: Not a bug
[2015-10-20 11:16 UTC] ab@php.net
[2015-10-20 13:09 UTC] nicolas dot grekas+php at gmail dot com
[2015-10-20 14:51 UTC] ab@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 09:00:01 2025 UTC |
Description: ------------ On Windows, both random_bytes and mcrypt_create_iv fail when the SYSTEMROOT env var is not set. Test script: --------------- <?php putenv('SYSTEMROOT='); echo strlen(random_bytes(1)); Expected result: ---------------- 1 Actual result: -------------- PHP Warning: mcrypt_create_iv(): Could not gather sufficient random data