#35284 [Opn->Bgs]: gmp_mod() has memory leak since very long time

From: Date: Fri, 18 Nov 2005 20:29:03 +0000
Subject: #35284 [Opn->Bgs]: gmp_mod() has memory leak since very long time
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-88503@lists.php.net to get a copy of this message
ID: 35284 Updated by: tony2001@php.net 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

« previous php.bugs (#88503) next »