From: poni1111 at yahoo dot com Operating system: FreeBSD 6.0 PHP version: 5.2.0 PHP Bug Type: Performance problem Bug description: === Total 1 memory leaks detected === in zend_execute.c(402)
Description: ------------ Here is what I see in my error.log: === Total 1 memory leaks detected === [Sun Feb 4 23:11:08 2007] Script: '/path/to/folder/index.php' /usr/ports/lang/php5/work/php-5.2.0/Zend/zend_execute.c(402) : Freeing 0x083729D8 (16 bytes), script=/path/to/folder/index.php Reproduce code: --------------- In index.php I have: require_once('DB.php'); $db =& DB::connect( "mysql://username:[EMAIL PROTECTED]/server_attempts" ); if (DB::isError($db)) { echo "RE"; exit(); } $db->setFetchMode(DB_FETCHMODE_ASSOC); $res=$db->query("INSERT INTO `table_name` (`date`, `ip`, `reverse-dns`, `user-agent`) VALUES (NOW(),?,?,?)", array($_SERVER['REMOTE_ADDR'], isset($_SERVER['REMOTE_HOST'])?$_SERVER['REMOTE_HOST']:"", $_SERVER['HTTP_USER_AGENT'])); $db->disconnect(); DB/Pear versions: DB 1.7.8 stable PEAR 1.5.0 stable -- Edit bug report at http://bugs.php.net/?id=40358&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40358&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40358&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40358&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40358&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40358&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40358&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40358&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40358&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40358&r=support Expected behavior: http://bugs.php.net/fix.php?id=40358&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40358&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40358&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40358&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40358&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40358&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40358&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40358&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40358&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40358&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40358&r=mysqlcfg