|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
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: Tue Aug 03 18:01:24 2021 UTC