From: fel...@php.net Operating system: Linux PHP version: 5.2CVS-2009-06-08 (CVS) PHP Bug Type: MySQLi related Bug description: mysqli::init() memory leaks
Description: ------------ See below: Reproduce code: --------------- $x = new mysqli; $x->init();$x->init(); Expected result: ---------------- No mem. leaks Actual result: -------------- [Mon Jun 8 16:59:13 2009] Script: '../bug.php' /home/felipe/dev/php5_2/ext/mysqli/mysqli_api.c(1102) : Freeing 0x09CAA2A0 (16 bytes), script=../bug.php /home/felipe/dev/php5_2/Zend/zend_alloc.c(2391) : Actual location (location was relayed) [Mon Jun 8 16:59:13 2009] Script: '../bug.php' /home/felipe/dev/php5_2/ext/mysqli/mysqli_api.c(1109) : Freeing 0x09CAB160 (12 bytes), script=../bug.php /home/felipe/dev/php5_2/Zend/zend_alloc.c(2391) : Actual location (location was relayed) === Total 2 memory leaks detected === -- Edit bug report at http://bugs.php.net/?id=48500&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48500&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48500&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48500&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=48500&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48500&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=48500&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=48500&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=48500&r=needscript Try newer version: http://bugs.php.net/fix.php?id=48500&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=48500&r=support Expected behavior: http://bugs.php.net/fix.php?id=48500&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=48500&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=48500&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=48500&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48500&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=48500&r=dst IIS Stability: http://bugs.php.net/fix.php?id=48500&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=48500&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=48500&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=48500&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=48500&r=mysqlcfg