Bug #15454 Updated: GMP problems with php 4.1.1

From: Date: Sun, 10 Feb 2002 23:16:27 +0000
Subject: Bug #15454 Updated: GMP problems with php 4.1.1
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-85@lists.php.net to get a copy of this message
ID: 15454 Updated by: elixer@php.net Reported By: sama@inf.ufsc.br -Status: Open +Status: Closed Bug Type: Math related Operating System: Linux Red Hat 7.2 PHP Version: 4.1.1 New Comment: This bug has been fixed in CVS. Previous Comments: ------------------------------------------------------------------------ [2002-02-10 13:10:32] sama@inf.ufsc.br 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. ------------------------------------------------------------------------ [2002-02-09 04:41:57] sander@php.net Can you post your configure line, and a self-contained sample script? ------------------------------------------------------------------------ [2002-02-08 10:48:58] sama@inf.ufsc.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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15454&edit=1

« previous php.bugs (#85) next »