php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50283 allow base in gmp_strval to use full range: 2 to 62, and -2 to -36
Submitted: 2009-11-24 11:29 UTC Modified: 2013-08-06 08:39 UTC
Votes:21
Avg. Score:3.2 ± 0.6
Reproduced:9 of 11 (81.8%)
Same Version:5 (55.6%)
Same OS:4 (44.4%)
From: asphp at dsgml dot com Assigned: dsp (profile)
Status: Closed Package: GNU MP related
PHP Version: 5.2.11 OS: Linux
Private report: No CVE-ID: None
 [2009-11-24 11:29 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-11-24 11:31 UTC] asphp at dsgml dot com
And for input as well of course.
 [2009-11-24 13:33 UTC] 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 13:35 UTC] 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 20:14 UTC] asphp at dsgml dot com
The docs and checkin comment all say till 62, but the code and the tests actually limit to 36.
 [2009-11-24 21:22 UTC] asphp at dsgml dot com
Also, gmp_init needs to be changed.
 [2009-11-25 23:38 UTC] svn@php.net
Automatic comment from SVN on behalf of dsp
Revision: http://svn.php.net/viewvc/?view=revision&revision=291323
Log: Also allow base 62 for gmp_init as requested in (#50283)
 [2010-12-14 16:28 UTC] jani@php.net
-Package: Feature/Change Request +Package: GNU MP related
 [2013-08-06 08:39 UTC] yohgaki@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 08:01:29 2024 UTC