From: [EMAIL PROTECTED] Operating system: Linux 2.2.16-3 PHP version: 4.0.4pl1 PHP Bug Type: *Math Functions Bug description: Some values returned by gmp_strval are null-terminated Some values returned by gmp_strval are padded with an additional \0 byte. The code for ($i = 0; $i < 20; $i++) { $n = gmp_init($i); $ns = gmp_strval($n); print ord(substr($ns, -1)) . ' '; } outputs 48 49 50 51 52 53 54 55 0 0 48 49 50 51 52 53 54 55 56 57 where I would expect 48 49 50 51 52 53 54 55 56 57 48 49 50 51 52 53 54 55 56 57 This behavior is reproducible. -- Edit Bug report at: http://bugs.php.net/?id=10133&edit=1 -- 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]