Re: [PHP-DEV] Question regarding zend's _efree implementation

2001-07-19 Thread Holger Zimmermann
Hi Zeev, > > Release build assumes no bugs, and thus doesn't try to help you to solve > bugs, and favours performance. In release builds, we don't perform slow > checking of every memory block. If an invalid block was passed - it'd > cause a crash (most probably). In debug builds, which can b

Re: [PHP-DEV] Question regarding zend's _efree implementation

2001-07-19 Thread Zeev Suraski
At 16:22 19/07/2001, Holger Zimmermann wrote: >Hi, > >I don't understand the purpose of the following code in zend_alloc.c: > >8< snip > >ZEND_API void _efree(void *ptr ZEND_FILE_LINE_DC ZEND_FILE_LINE_ORIG_DC) >{ > zend_mem_header *p = (zend_mem_header *) ((char *)ptr - > sizeof(zend_mem