Bug #69833 [Com]: mcrypt broken in 5.6.10 fd caching not working

From: Date: Wed, 05 Aug 2015 03:23:07 +0000
Subject: Bug #69833 [Com]: mcrypt broken in 5.6.10 fd caching not working
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-194959@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69833&edit=1 ID: 69833 Comment by: tbmstechnical at gmail dot com Reported by: iand at ekit-inc dot com Summary: mcrypt broken in 5.6.10 fd caching not working Status: Assigned Type: Bug Package: mcrypt related Operating System: Solaris 9,10 PHP Version: 5.6.10 Assigned To: leigh Block user comment: N Private report: N New Comment: Im seeing this issue on php 5.6.11 under apache 2.4.16 with mpm_event_module on Ubuntu 14.04. Previous Comments: ------------------------------------------------------------------------ [2015-08-03 12:43:52] leigh@php.net Hi, sorry for the late reply. Yes this affected the CSPRNG fd cache too. Submittd PRs 1450 and 1451 to address MCrypt and random_* respectively to address the fact that the fd can be zero. How it got to be zero is more of a mystery, those read() calls are returning 0 so it looks like it really was /dev/null in Ians trace. ------------------------------------------------------------------------ [2015-06-22 17:55:11] info at regioconnect dot net Can confirm this problem on debian 7 on xen PV. apache 2.4.12, both for php 5.5.26 and 5.6.10 underlying distro is debian wheezy, but apache and php were source compiled. happens with mediawiki 1.25.1: in includes/MWCryptRand.php $iv = mcrypt_create_iv( $rem, MCRYPT_DEV_URANDOM ); changing 2nd parameter to MCRYPT_RAND makes the problem go away. ------------------------------------------------------------------------ [2015-06-16 06:16:20] compi at stz-bg dot com Have the same problem on test server Linux Slackware x64 current. Interesting on produce servers are the same like test server (packages) this problem does not exists, but my test server run on apache2, produce servers on nginx with php-fpm. ------------------------------------------------------------------------ [2015-06-15 08:53:37] iand at ekit-inc dot com Hi Leigh; can you elaborate on how I can test that please. Thanks. Ian D ------------------------------------------------------------------------ [2015-06-15 07:11:53] nikic@php.net @leigh: Please also check whether this applies to the CSPRNG as well. ------------------------------------------------------------------------ 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=69833 -- Edit this bug report at https://bugs.php.net/bug.php?id=69833&edit=1

« previous php.bugs (#194959) next »