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
nn4itprotocol.cpp(1359) :  Freeing 0x081FC38C (19 bytes),
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 <[EMAIL PROTECTED]>
NoName4Us AB

"Lack of money is the root of all evil."
                -- George Bernard Shaw

PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to