![]() |
|
Welcome to the Computer Webmaster Gaming Console Graphics Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| |||||||
| Pear Pear programming, this is a very complex subject as with using pear with php can be a difficult task for some, so lets talk pear. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 | ||
| terrafrost Mon May 14 03:33:28 2007 UTC Modified files: /pear/Math_BigInteger BigInteger.php Log: - fix for the issue described at http://bugs.php.net/bug.php?id=41375 http://cvs.php.net/viewvc.cgi/pear/M...&diff_format=u Index: pear/Math_BigInteger/BigInteger.php diff -u pear/Math_BigInteger/BigInteger.php:1.5 pear/Math_BigInteger/BigInteger.php:1.6 --- pear/Math_BigInteger/BigInteger.php:1.5 Tue Feb 6 06:00:46 2007 +++ pear/Math_BigInteger/BigInteger.php Mon May 14 03:33:28 2007 @@ -69,7 +69,7 @@ * @author Jim Wigginton <terrafrost@php.net> * @copyright MMVI Jim Wigginton * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: BigInteger.php,v 1.5 2007/02/06 06:00:46 terrafrost Exp $ + * @version CVS: $Id: BigInteger.php,v 1.6 2007/05/14 03:33:28 terrafrost Exp $ * @link http://pear.php.net/package/Math_BigInteger */ @@ -1925,7 +1925,8 @@ $remainder = ''; if ($num_bytes) { - $remainder = substr($x, -$num_bytes); + $start = $num_bytes > strlen($x) ? -strlen($x) : -$num_bytes; + $remainder = substr($x, $start); $x = substr($x, 0, -$num_bytes); } | |||
| Featured Websites | ||||
|
![]() |
| Tags: bigintegerphp, cvs, math_biginteger, pear |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cvs: pear-core / package-PEAR.xml package2.xml /PEAR/PackageFile/Generator v2.php | Greg Beaver | Pear | 0 | 05-20-2007 7:42 PM |
| cvs: pear-core / package-PEAR.xml package2.xml /PEAR Installer.php /PEAR/PackageFile v1.php /PEAR/PackageFile/v2 Validator.php | Greg Beaver | Pear | 0 | 05-20-2007 7:42 PM |
| cvs: pear-core / package-PEAR.xml package2.xml /PEAR Downloader.php /PEAR/Downloader Package.php | Greg Beaver | Pear | 0 | 05-20-2007 7:42 PM |
| cvs: pear /PHP_CodeSniffer/CodeSniffer/Standards/PEAR/Sniffs/Commenting FileCommentSniff.php | Greg Sherwood | Pear | 0 | 05-20-2007 7:41 PM |
| [PEAR-DEV] Associative arrays and PEAR SOAP | Adam Ashley | Pear | 0 | 05-20-2007 7:41 PM |
| Featured Websites | ||||
|