Doc #71681 [Opn->Csd]: gmp_import example show wrong results

From: Date: Mon, 25 Dec 2017 11:39:01 +0000
Subject: Doc #71681 [Opn->Csd]: gmp_import example show wrong results
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-15305@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=71681&edit=1 ID: 71681 Updated by: nikic@php.net Reported by: anrdaemon at freemail dot ru Summary: gmp_import example show wrong results -Status: Open +Status: Closed Type: Documentation Problem Package: GNU MP related PHP Version: Irrelevant -Assigned To: +Assigned To: nikic Block user comment: N Private report: N New Comment: Current docs say 258, so looks like this was fixed in the meantime. Previous Comments: ------------------------------------------------------------------------ [2016-02-28 02:35:54] 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"; ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=71681&edit=1

« previous php.doc.bugs (#15305) next »