Re: emalloc_rel()
| From: | Zeev Suraski | Date: | Fri, 31 Aug 2001 08:48:54 +0000 |
| Subject: | Re: emalloc_rel() | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-64773@lists.php.net to get a copy of this message | ||
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 <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net-- Zeev Suraski <zeev@zend.com> CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/