|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40358 === Total 1 memory leaks detected === in zend_execute.c(402)
Submitted: 2007-02-04 21:37 UTC Modified: 2007-02-13 01:00 UTC
From: poni1111 at yahoo dot com Assigned:
Status: No Feedback Package: Unknown/Other Function
PHP Version: 5.2.0 OS: FreeBSD 6.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: poni1111 at yahoo dot com
New email:
PHP Version: OS:


 [2007-02-04 21:37 UTC] poni1111 at yahoo dot com
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: 

$db =& DB::connect( "mysql://username:password@localhost/server_attempts" );
if (DB::isError($db)) {
        echo "RE";

$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/Pear versions:
DB               1.7.8   stable
PEAR             1.5.0   stable


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-05 09:24 UTC]
Please try using this CVS snapshot:
For Windows:

 [2007-02-13 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 22 20:01:29 2024 UTC