|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-02-08 10:48 UTC] sama at inf dot ufsc dot br
Hi,
I'm tried to use gmp on php 4.1.1 but, when I added a big number on the gmp_init function, the function retuned me zero. So, I return back to 4.0.6 and the gmp_init fuction returned the correct number.
I think there is something wrong with gmp on php 4.1.1.
Roberto Samarone Araujo
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 15:00:01 2025 UTC |
You can use a simple code like this : $x = gmp_init("0x00d2d025ec7e1dbb6d778a52394c988594c57b47d7327a3e676d3a5ca7a5af87c4153c80994cf781f6a9d4a2f0e66d04baffb0059853a8937a895f6d17e76950e1"); printf("%s",gmp_strval($x)); If you put " between the big number on gmp_init function, it doesn't show the value on printf function but, if you remove ", you can see that or it doesn't shows the correct value or it shows zero. On my configure line, I added --with-gmp and it compiled all right.