php.net |  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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: poni1111 at yahoo dot com
New email:
PHP Version: OS:

 

 [2007-02-04 21:37 UTC] 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



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-05 09:24 UTC] tony2001@php.net
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


 [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: Sat Dec 21 13:01:31 2024 UTC