Bug #10701 [Fbk->NoF]: Key pair generation fails when using bcmath

From: Date: Mon, 23 Mar 2009 17:06:04 +0000
Subject: Bug #10701 [Fbk->NoF]: Key pair generation fails when using bcmath
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-245@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=10701&edit=1 ID: 10701 Updated by: daniel.oconnor@gmail.com Reported By: oleg at barshaysoftware dot com Summary: Key pair generation fails when using bcmath -Status: Feedback +Status: No Feedback Type: Bug Package: Crypt_RSA Operating System: Windows PHP Version: 4.4.4 Roadmap Versions: New Comment: -Status: Feedback +Status: No Feedback Previous Comments: ------------------------------------------------------------------------ [2008-03-23 00:20:58] doconnor Oleg, Any chance of reproduce code? ------------------------------------------------------------------------ [2007-04-12 14:42:48] obarshay Description: ------------ When generating key pairs using the bcmath library with the scale parameter set greater than 0, the library hangs for a very long time (minutes). This happens for 1.2 and 1.0 package versions. Workaround: Changing the scale parameter back to 0 in php.ini or calling bcscale(0) fixes the issue. Recommended solution: If BCMath.php library wrapper requires a scale of 0, it should probably be explicitly passed to the bc function calls inside the wrapper. ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=10701&edit=1

« previous php.pear.bugs (#245) next »