ID: 3551
Updated by: jimw
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Assigned To: 
Comments:

refiled against 4.0.

Previous Comments:
---------------------------------------------------------------------------

[2000-08-01 17:03:11] [EMAIL PROTECTED]
moved to "feature request"

---------------------------------------------------------------------------

[2000-02-21 11:57:37] [EMAIL PROTECTED]
base_convert() does not accept values larger than 31 bits (e.g. 7 hex chars = 28bits 
is OK, 8 hex chars at 32 bits is not) 

Appears in the code that the string is converted to a signed long. 

a) should at least report an error if value > 31 bits.
b) Would be helpful to operate on larger values, e.g. md5 hashes, which are 128 bits 
or even on double hashes at 256 bits. 

c) would be easy to increase bases to 64 from 36 by making 
static char digits[] = 
"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_"; in 
ext/standard/math.c (_php_math_longtobase())) which would work for most things (e.g. 
URLs & GET method) as well as filenames. 

---------------------------------------------------------------------------



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=3551&edit=2


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to