Re: [PHP-DEV] emalloc_rel()

2001-08-31 Thread Zeev Suraski

Yeah,  but you have to make sure that it gets passed the right arguments.
Your 'hosting' function(s) must have filename&lineno info passed to them 
(i.e., ZEND_FILE_LINE_DC in the prototype).
The allocation function should have should have 'ZEND_FILE_LINE_DC 
ZEND_FILE_LINE_ORIG_DC' in its prototype.
Then, calling emalloc_rel() should work fine.

Zeev

At 10:36 31-08-01, Robin Ericsson wrote:
>I'm trying to get emalloc_rel() working in a extension I wrote, but I
>get undefined references to __zend_filename, and I can't find that
>defiend anywhere in the source.
>
>Is it even possible to get emalloc_rel() working in a extension? I have
>the need for it, as the extension is written in c++ and overloaded
>emalloc/efree to be able to detect memoryleaks.
>
>
>
>--
>Robin Ericsson
>
>
>
>--
>PHP Development Mailing List 
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]

--
Zeev Suraski <[EMAIL PROTECTED]>
CTO &  co-founder, Zend Technologies Ltd. http://www.zend.com/


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] emalloc_rel()

2001-08-31 Thread Robin Ericsson

I'm trying to get emalloc_rel() working in a extension I wrote, but I
get undefined references to __zend_filename, and I can't find that
defiend anywhere in the source.

Is it even possible to get emalloc_rel() working in a extension? I have
the need for it, as the extension is written in c++ and overloaded
emalloc/efree to be able to detect memoryleaks.



-- 
Robin Ericsson



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]