Bug #15837 Updated: gpm_powm()

From: Date: Sat, 02 Mar 2002 20:15:24 +0000
Subject: Bug #15837 Updated: gpm_powm()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-1504@lists.php.net to get a copy of this message
ID: 15837 Updated by: sander@php.net Reported By: sama@inf.ufsc.br -Status: Bogus +Status: Feedback Bug Type: *Math Functions Operating System: Linux - Red Hat 7.2 PHP Version: 4.1.2 New Comment: What do you mean with 'doesn't return anything'? Does it not return a 'Resource id'? Anyway, your calculation returns 0 (10^15=1000000000000000, 1000000000000000%20=0). Is that what you mean? What does the following sample script print for you: <?php echo ($x = gmp_init(3))."\n"; echo ($y = gmp_init(3))."\n"; echo ($m = gmp_init(20))."\n"; echo ($assoc = gmp_powm($x,$y,$m))."\n"; echo gmp_strval($assoc)."\n"; ?> Also, what's your configure line and your version of gmp? Previous Comments: ------------------------------------------------------------------------ [2002-03-02 14:57:51] sama@inf.ufsc.br The gpm function gpm_powm() doesn't work !! For example: $x = gmp_init(10); $y = gmp_init(15); $m = gmp_init(20); $assoc = gmp_powm($x,$y,$m); gmp_powm($x,$y,$m)) doesn't return anything. ------------------------------------------------------------------------ [2002-03-02 14:39:53] sander@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". ------------------------------------------------------------------------ [2002-03-02 14:14:13] sama@inf.ufsc.br The gpm function gpm_powm() doesn't work right. If you try to use it, it doesn't return the value. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15837&edit=1

« previous php.bugs (#1504) next »