Bug #65997 [NEW]: Leak when using gc_collect_cycles with new GMP implementation

From: Date: Tue, 29 Oct 2013 18:44:01 +0000
Subject: Bug #65997 [NEW]: Leak when using gc_collect_cycles with new GMP implementation
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-182478@lists.php.net to get a copy of this message
From: nikic Operating system: PHP version: master-Git-2013-10-29 (Git) Package: GNU MP related Bug Type: Bug Bug description:Leak when using gc_collect_cycles with new GMP implementation 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 bug report at https://bugs.php.net/bug.php?id=65997&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65997&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=65997&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65997&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=65997&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=65997&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=65997&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=65997&r=needscript Try newer version: https://bugs.php.net/fix.php?id=65997&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=65997&r=support Expected behavior: https://bugs.php.net/fix.php?id=65997&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=65997&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=65997&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=65997&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65997&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=65997&r=dst IIS Stability: https://bugs.php.net/fix.php?id=65997&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=65997&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=65997&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=65997&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=65997&r=mysqlcfg

« previous php.bugs (#182478) next »