[PHP-DEV] PHP_MODE_INDENT in cgi_main.c

2001-07-20 Thread Holger Zimmermann
Hi, what's the current status of the piece of code responsible for indent mode output in the CGI sapi? This snippet is from function main() #if 0 /* Zeev might want to do something with this one day */ case PHP_MODE_INDENT: open_file_for_s

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

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

2001-07-19 Thread Holger Zimmermann
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_header) - PLATFORM_PADDING); DECLARE_CACHE_VARS