| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2001-04-29 06:42 UTC] jmoore@php.net
  [2002-02-10 18:16 UTC] elixer@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 06:00:01 2025 UTC | 
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.