From 6ea02e0092d2ae6130e8fe47023064cdc38288f0 Mon Sep 17 00:00:00 2001 From: Jeroen van Wolffelaar Date: Wed, 16 May 2001 15:27:52 +0000 Subject: [PATCH] Added warning to gmp_init git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@47587 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/gmp.xml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/functions/gmp.xml b/functions/gmp.xml index 882038c18b..8b0e659e21 100644 --- a/functions/gmp.xml +++ b/functions/gmp.xml @@ -86,6 +86,25 @@ print gmp_strval (fact (1000)) . "\n"; + + + + If you want to explicitely specify an integer, do not use + gmp_init(12378473895798475827348979342), + since first the integer-literal will be interpreted, + resulting in an + overflow + and thus in zero, and then gmp_init is called with that + zero as argument. + + + + Instead, use + gmp_init('12378473895798475827348979342') + + + It is not necessary to call this function if you want to use