Bug #55169 [Bgs->Opn]: mcrypt_create_iv always fails to gather sufficient random data
| From: | pajoye@php.net | Date: | Mon, 11 Jul 2011 16:41:04 +0000 |
| Subject: | Bug #55169 [Bgs->Opn]: mcrypt_create_iv always fails to gather sufficient random data | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-161799@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55169&edit=1
ID: 55169
Updated by: pajoye@php.net
Reported by: nikic@php.net
Summary: mcrypt_create_iv always fails to gather sufficient
random data
-Status: Bogus
+Status: Open
Type: Bug
Package: mcrypt related
Operating System: Windows 7
PHP Version: 5.4SVN-2011-07-09 (snap)
Block user comment: N
Private report: N
New Comment:
No idea, who made that change?
Previous Comments:
------------------------------------------------------------------------
[2011-07-11 11:08:47] nikic@php.net
Why is this Bogus now?
------------------------------------------------------------------------
[2011-07-10 17:41:17] nikic@php.net
Argh, I just can't handle this bugtracker :( Seems like it assignes the bug to me if I leave
the "Assign to" field empty.
------------------------------------------------------------------------
[2011-07-10 17:38:39] nikic@php.net
Hm, seems like I indeed used some wrong binary. I have just downloaded 313114ts again and it worked
:)
Thanks for the quick fix and sorry for the confusion ^^
Closing this then ;)
------------------------------------------------------------------------
[2011-07-10 16:58:13] pajoye@php.net
I can't reproduce the problem, are you sure you used the right binaries?
c:\test\php540r313114>php -d extension_dir=ext -d extension=php_openssl.dll -r
"var_dump(mcrypt_create_iv(1, MCRYPT_DEV_URANDOM));"
string(1) "âº"
and using NTS:
c:\test\php540ntsr313114>php -d extension_dir=ext -d extension=php_openssl.dll -
r "var_dump(mcrypt_create_iv(1, MCRYPT_DEV_URANDOM));"
string(1) "â"
------------------------------------------------------------------------
[2011-07-10 14:53:33] nikic@php.net
I just tried using an nts instead of a ts build, and it worked there. So it's seems to be some
thread safety related problem.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=55169
--
Edit this bug report at https://bugs.php.net/bug.php?id=55169&edit=1