memory leaks in own extension

From: Date: Mon, 30 Jul 2001 14:57:58 +0000
Subject: memory leaks in own extension
Groups: php.dev 
Request: Send a blank email to php-dev+get-61551@lists.php.net to get a copy of this message
Hi, I'm writing an own extension in C++, and I have trouble with memoryleaks. I'm using PHP 4.0.6. When I enable debug I don't find my leaks, but I do find some other leaks: nn4itprotocol.cpp(1359) : Freeing 0x081FC38C (19 bytes), script=main.phtml zend_operators.c(441) : Actual location (location was relayed) Last leak repeated 77 times Here I use convert_to_string_ex(), should this leak? html.c(56) : Freeing 0x0819C4B4 (128 bytes), script=main.phtml Last leak repeated 8 times Here I use php_escape_html_entities from within my extension, is that a proper way? Anyway, the real problem is, I can't find out where the memoryleaks are, I've tried to overload new/delete functions to use emalloc/efree instead, but that didn't help me much. So, my question should be, is there any other way to detect memoryleaks within PHP? best regards... -- Robin Ericsson <robin.ericsson@noname4us.com> NoName4Us AB "Lack of money is the root of all evil." -- George Bernard Shaw

« previous php.dev (#61551) next »