Bug #65997 [Opn->Csd]: Leak when using gc_collect_cycles with new GMP implementation

From: Date: Tue, 29 Oct 2013 20:05:41 +0000
Subject: Bug #65997 [Opn->Csd]: Leak when using gc_collect_cycles with new GMP implementation
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-182480@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=65997&edit=1 ID: 65997 Updated by: nikic@php.net Reported by: nikic@php.net Summary: Leak when using gc_collect_cycles with new GMP implementation -Status: Open +Status: Closed Type: Bug Package: GNU MP related PHP Version: master-Git-2013-10-29 (Git) -Assigned To: +Assigned To: nikic Block user comment: N Private report: N New Comment: Fixed in https://github.com/php/php-src/commit/4218e89f8df4ca3897e3aad595e0c2c9cf4c3aca. Previous Comments: ------------------------------------------------------------------------ [2013-10-29 18:44:01] nikic@php.net Description: ------------ From http://www.reddit.com/r/PHP/comments/1hx7qz/what_is_going_on_here_how_do_i_fix_t function calcExp ($gmpC) { //make sure gc is on gc_enable(); for ($i=0; $i<2000000000; $i++) { $gmpTempC = $gmpC; gc_collect_cycles(); } return false; } $num = gmp_init('1094189891312342345461854'); print "\n"; calcExp($num); ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=65997&edit=1

« previous php.bugs (#182480) next »