|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #71681 gmp_import example show wrong results
Submitted: 2016-02-28 02:35 UTC Modified: 2017-12-25 11:38 UTC
From: anrdaemon at freemail dot ru Assigned: nikic (profile)
Status: Closed Package: GNU MP related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
16 + 9 = ?
Subscribe to this entry?

 [2016-02-28 02:35 UTC] anrdaemon at freemail dot ru

should be 258, not 528.

Test script:

$number = gmp_import("\0\1\2");
echo gmp_strval($number) . "\n";


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-28 13:23 UTC]
-Type: Bug +Type: Documentation Problem -Package: Documentation problem +Package: GNU MP related
 [2017-12-25 11:38 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: nikic
 [2017-12-25 11:38 UTC]
Current docs say 258, so looks like this was fixed in the meantime.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Aug 03 17:01:23 2021 UTC