[PHP-DEV] info needed regarding TSRM thread local storage

2004-09-09 Thread Kamesh Jayachandran
Hi All, what this MBO_0 mean? I could see the MBO_0 ifdefs removed in 1.62 version of TSRM.c whether this change has got anything to do with memory leak fix. I could see 246888 bytes of leak for each thread. Even the simple ?php echo hi;? script causes 60 bytes of leak. Where and when the thread

Re: [PHP-DEV] info needed regarding TSRM thread local storage

2004-09-09 Thread Andrey Hristov
Hi, probably MBO_0 stands for MarcusBOerger_0 . I am not sure whether this was somewehere in the coding standards document, but this means that the programmer has commented the code by using the preprocessor. The programmer has to put his name and a suffix _0 . Usually code commented this way

Re: [PHP-DEV] info needed regarding TSRM thread local storage

2004-09-09 Thread Kamesh Jayachandran
Thanks Andrey. I have Apache with worker thread mpm configured. With this MBO_0 macro not defined I get a memory leak of 2,46,888 bytes. With this MBO_0 macro defined I get a memory leak of 51,912 bytes. If I look at the code also it seems that dtor of the resources are called only if MBO_0 macro

Re: [PHP-DEV] info needed regarding TSRM thread local storage

2004-09-09 Thread Marcus Boerger
Hello Kamesh, Thursday, September 9, 2004, 4:37:24 PM, you wrote: Thanks Andrey. I have Apache with worker thread mpm configured. With this MBO_0 macro not defined I get a memory leak of 2,46,888 bytes. With this MBO_0 macro defined I get a memory leak of 51,912 bytes. If I look at the code

Re: [PHP-DEV] info needed regarding TSRM thread local storage

2004-09-09 Thread Kamesh Jayachandran
Hi Marcus, That is fine. The leak of 2,46,888 I was getting when I had ldap, mysql and xml extension enabled. After Disabling them and without MBO_0 I had a leak of 87744 bytes. After Disabling them and with MBO_0 I had a leak of 51,912 bytes. Anyway this figures are as given by NetWare System

Re: [PHP-DEV] info needed regarding TSRM thread local storage

2004-09-09 Thread Marcus Boerger
Hello Kamesh, Thursday, September 9, 2004, 6:00:38 PM, you wrote: Hi Marcus, That is fine. The leak of 2,46,888 I was getting when I had ldap, mysql and xml extension enabled. After Disabling them and without MBO_0 I had a leak of 87744 bytes. After Disabling them and with MBO_0 I had a

Re: [PHP-DEV] info needed regarding TSRM thread local storage

2004-09-09 Thread Andi Gutmans
At 04:30 PM 9/9/2004 +0200, Andrey Hristov wrote: Hi, probably MBO_0 stands for MarcusBOerger_0 . I am not sure whether this was somewehere in the coding standards document, but this means that the programmer has commented the code by using the preprocessor. The programmer has to put his name