Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 566672 - =dev-lang/php-5.5.30 - mcrypt broken, fd caching not working
Summary: =dev-lang/php-5.5.30 - mcrypt broken, fd caching not working
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: PHP Bugs
URL: https://bugs.php.net/bug.php?id=69833
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2015-11-23 19:23 UTC by Martin Zeug
Modified: 2015-11-24 16:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Zeug 2015-11-23 19:23:27 UTC
with apache 2.4 and mod php this code timeouts, in cli mode there is no problem
<?php 
$cipher = MCRYPT_RIJNDAEL_128; 
$mode = MCRYPT_MODE_CBC; 
$block = 16; 

$getIvSize = mcrypt_get_iv_size($cipher, $mode); 
$iv = mcrypt_create_iv($getIvSize, MCRYPT_DEV_URANDOM); 
echo base64_encode($iv); 
?>

Reproducible: Always

Actual Results:  
timeout

Expected Results:  
output random

Patch can be found here and works
http://git.php.net/?p=php-src.git;a=commitdiff;h=a94ea9c97a5331d416c6256e5b01645188182054
Comment 1 Tomáš Mózes 2015-11-23 20:22:52 UTC
Seems like this won't be backported to 5.5, but is in 5.6 already.
Comment 2 Brian Evans (RETIRED) gentoo-dev 2015-11-23 20:27:09 UTC
(In reply to Tomas Mozes from comment #1)
> Seems like this won't be backported to 5.5, but is in 5.6 already.

5.5 is in security fix only mode per [0] so I doubt any fixes are going that way for a timeout bug.

[0] https://secure.php.net/supported-versions.php
Comment 3 Tomáš Mózes 2015-11-24 06:43:22 UTC
(In reply to Brian Evans from comment #2)
> 5.5 is in security fix only mode per [0] so I doubt any fixes are going that
> way for a timeout bug.

Yes, so what do we do? Do we backport this patch or advice for an upgrade to an actively supported branch like 5.6?
Comment 4 Michael Orlitzky gentoo-dev 2015-11-24 15:46:25 UTC
Thanks for finding that upstream bug Tomas.

I would ask the reporter to please test the 5.6.x series to see if his problem is fixed there. If it is, then I suggest sticking with the maintained 5.6.x series. There shouldn't be many incompatibilities.

If the problem *isn't* fixed, I can investigate further.
Comment 5 Martin Zeug 2015-11-24 15:58:52 UTC
The problem is fixed in 5.6 with the mentioned patch.
But I can not move to 5.6 on this server. So I have to patch for me, no problem.

Martin
Comment 6 Michael Orlitzky gentoo-dev 2015-11-24 16:19:48 UTC
We do call epatch_user() in the php-5.5.30 ebuild, so it should be easy to patch:

  https://wiki.gentoo.org/wiki//etc/portage/patches

Sorry we can't do more, but we try to stick to upstream as closely as possible.