#40358 [Opn->Fbk]: === Total 1 memory leaks detected === in zend_execute.c(402)
| From: | tony2001@php.net | Date: | Mon, 05 Feb 2007 09:24:32 +0000 |
| Subject: | #40358 [Opn->Fbk]: === Total 1 memory leaks detected === in zend_execute.c(402) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-108403@lists.php.net to get a copy of this message | ||
ID: 40358
Updated by: tony2001@php.net
Reported By: poni1111 at yahoo dot com
-Status: Open
+Status: Feedback
-Bug Type: Performance problem
+Bug Type: Unknown/Other Function
Operating System: FreeBSD 6.0
PHP Version: 5.2.0
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2007-02-04 21:37:01] poni1111 at yahoo dot com
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
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40358&edit=1