Re: [PHP-DEV] registering object constants leaking memory.

2005-04-07 Thread Marcus Boerger
Hello Alan, it seems you are registering constants on an internal class. If so you must use the correct api since your data must be allocated by malloc instead of emalloc. In your codes i can only see regular stuff that uses emalloc so it must go wrong. marcus Thursday, April 7, 2005, 5:10:53

[PHP-DEV] registering object constants leaking memory.

2005-04-07 Thread Alan Knowles
I'm using the code below to register object constants, however I'm getting a memory leak on the line shown.. , any ideas how to avoid this? /var/svn_live/dbdo/dbdo.c(401) : Freeing 0x0860FC34 (16 bytes), script=examples/info.php #define hash_add_assoc_long(__arg, __key, __val) hash_add_assoc_lon