|  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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: anrdaemon at freemail dot ru
New email:
PHP Version: OS:


 [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: Fri Oct 22 23:03:34 2021 UTC