ID:               10133
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
 Bug Type:         Math related
 Operating System: Linux 2.2.16-3
 PHP Version:      4.0.4pl1
 New Comment:

This bug has been fixed in CVS.




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

[2001-04-29 06:42:55] [EMAIL PROTECTED]

reclassify

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

[2001-04-03 07:13:01] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=10133&edit=1

Reply via email to