#23564 [Fbk->Ver]: base_convert() ignores last character

From: Date: Wed, 14 May 2003 16:14:18 +0000
Subject: #23564 [Fbk->Ver]: base_convert() ignores last character
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39652@lists.php.net to get a copy of this message
 ID:               23564
 Updated by:       sniper@php.net
 Reported By:      jaakkoho at paju dot oulu dot fi
-Status:           Feedback
+Status:           Verified
 Bug Type:         Math related
 Operating System: Linux 2.4 (Debian)
-PHP Version:      4.3.1
+PHP Version:      4.3.2RC3-dev


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

[2003-05-09 17:18:53] magnus@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip



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

[2003-05-09 09:22:00] jaakkoho at paju dot oulu dot fi

Both the following commands outputs same value: 
 
base_convert("aaaaaaaaaaa", 36, 10); 
base_convert("aaaaaaaaaab", 36, 10); 
 
output: 37606201097790608 
 
In fact, the last character can be whatever between 0-z, 
and the output is always same. 
 
This bug appears only if strlen($string_to_convert) > 10. 
 

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


-- 
Edit this bug report at http://bugs.php.net/?id=23564&edit=1



Thread (4 messages)

« previous php.bugs (#39652) next »