ID: 15837
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Open
+Status: Bogus
Bug Type: *Math Functions
Operating System: Linux - Red Hat 7.2
PHP Version: 4.1.2
New Comment:
No.
I'm bogusifying until you can answer the questions we asked you.
Without those answers we cannot help you any further. Feel free to
re-open if you have the necessary information.
Previous Comments:
------------------------------------------------------------------------
[2002-03-02 16:02:02] [EMAIL PROTECTED]
I don't know ... Is gmp comming with php ?
------------------------------------------------------------------------
[2002-03-02 15:57:55] [EMAIL PROTECTED]
Lets try this again:
What is your ENTIRE configure line. What version of GMP are you using?
What does that script print for you? Does it print an error message?
------------------------------------------------------------------------
[2002-03-02 15:56:21] [EMAIL PROTECTED]
You still failed to mention which version of gmp you are using.
------------------------------------------------------------------------
[2002-03-02 15:43:54] [EMAIL PROTECTED]
I'm using PHP 4.1.2.
No, it doesn't return a 'Resource id'. The script doesn't work. It's
sounds like an erro on this function because, if I comment it, the
script work friendly.
On my configure line I added --with-gmp.
------------------------------------------------------------------------
[2002-03-02 15:15:23] [EMAIL PROTECTED]
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?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/15837
--
Edit this bug report at http://bugs.php.net/?id=15837&edit=1