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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: anrdaemon at freemail dot ru
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC