[PHP-DEV] Re: Adding vars to debug_backtrace()

2003-10-26 Thread Christian Schneider
Ok, I worked out a patch which does not leak memory. I don't think thread-safety is an issue here but if anyone with deeper insight into Zend sees any problem with this patch, please tell me. What's the process (and chance :-)) of having this included in a future version of PHP? Should I also l

[PHP-DEV] Re: Adding vars to debug_backtrace()

2003-10-25 Thread Christian Schneider
Oops, after I first added FREE_ZVAL(vars) to my patch to get rid of the memory leak I now realized that it simply doesn't work like this. I still have to learn about the memory management/gc of Zend I guess :-) If you want to try my patch and don't care about a memory leak, remove the line FREE