php.net |  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
 [2016-02-28 02:35 UTC] anrdaemon at freemail dot ru
Description:
------------
gmp_import("\0\1\2");

should be 258, not 528.

https://3v4l.org/HOrKs

Test script:
---------------
<?php

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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-28 13:23 UTC] cmb@php.net
-Type: Bug +Type: Documentation Problem -Package: Documentation problem +Package: GNU MP related
 [2017-12-25 11:38 UTC] nikic@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: nikic
 [2017-12-25 11:38 UTC] nikic@php.net
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 Mar 02 15:01:24 2021 UTC