#50283 [Tbd]: allow base in gmp_strval to use full range: 2 to 62, and -2 to -36
| From: | asphp at dsgml dot com | Date: | Tue, 24 Nov 2009 20:14:53 +0000 |
| Subject: | #50283 [Tbd]: allow base in gmp_strval to use full range: 2 to 62, and -2 to -36 | ||
| References: | 1 | Groups: | php.bugs php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-3332@lists.php.net to get a copy of this message | ||
ID: 50283
User updated by: asphp at dsgml dot com
Reported By: asphp at dsgml dot com
Status: To be documented
Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: 5.2.11
New Comment:
The docs and checkin comment all say till 62, but the code and the
tests actually limit to 36.
Previous Comments:
------------------------------------------------------------------------
[2009-11-24 15:08:22] rquadling@php.net
Documented.
Revision: http://svn.php.net/viewvc/?view=revision&revision=291267
------------------------------------------------------------------------
[2009-11-24 13:35:06] dsp@php.net
The documentation states that base has to be between 2 and 36. We have
to correct this, as we now allow -2 to -36 aswell.
------------------------------------------------------------------------
[2009-11-24 13:33:36] svn@php.net
Automatic comment from SVN on behalf of dsp
Revision: http://svn.php.net/viewvc/?view=revision&revision=291262
Log: Implement feature request #50283 (allow base in gmp_strval to use
full range: 2 to 62, and -2 to -36)
------------------------------------------------------------------------
[2009-11-24 11:31:47] asphp at dsgml dot com
And for input as well of course.
------------------------------------------------------------------------
[2009-11-24 11:29:58] asphp at dsgml dot com
Description:
------------
According to http://gmplib.org/manual/Converting-Integers.html
gmp_strval should be able to use a base range of 2 to 62, and -2 to
-36.
However php enforces the base to be between 2 and 36. Please allow the
full range.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50283&edit=1