ID:               35284
 Updated by:       [EMAIL PROTECTED]
 Reported By:      hoarau76 at free dot fr
-Status:           Open
+Status:           Bogus
 Bug Type:         *Math Functions
 Operating System: freebsd 6 x86
 PHP Version:      5.0.5
 New Comment:

"Reported"?
We have only one bug system where you can report a bug and it is
bugs.php.net.

And yes, gmp_mod() (not the function itself, but the underlying gmp
routines) use memory quite aggressively.
Report that to GMP authors.
Not PHP problem.


Previous Comments:
------------------------------------------------------------------------

[2005-11-18 21:08:32] hoarau76 at free dot fr

Description:
------------
there is a very long bug with gmp_mod(): memory leak problem
which was reported here in may 2004 here:
http://www.devpen.com/forums/index.php?showtopic=15
and it persists


Reproduce code:
---------------
for ($i=10000000;$i > 0;$i--) { $x = gmp_mod($i,"64");}

Expected result:
----------------
when you do a "top" you see the memory usage increasing very quickly

Actual result:
--------------
FATAL:  emalloc():  Unable to allocate 309 bytes



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35284&edit=1

Reply via email to