Date: 08/31/01
- Next message: mfischer <email protected>: "[PHP-DEV] Bug #8480 Updated: TSRM.dsp has LF only; needs CRLF"
- Previous message: carsten.senf <email protected>: "[PHP-DEV] Bug #13073: empty() returns wrong value"
- In reply to: Robin Ericsson: "[PHP-DEV] emalloc_rel()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected>
>For additional commands, e-mail: php-dev-help <email protected>
>To contact the list administrators, e-mail: php-list-admin <email protected>
-- Zeev Suraski <zeev <email protected>> CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: mfischer <email protected>: "[PHP-DEV] Bug #8480 Updated: TSRM.dsp has LF only; needs CRLF"
- Previous message: carsten.senf <email protected>: "[PHP-DEV] Bug #13073: empty() returns wrong value"
- In reply to: Robin Ericsson: "[PHP-DEV] emalloc_rel()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

