|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-02-05 09:24 UTC] tony2001@php.net
[2007-02-13 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 12:00:01 2025 UTC |
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:password@localhost/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