php/php-src — pull request #64 by reeze (2012-04-20 09:43:03+00:00)
Title: Fixed Bug #61785 (Memory leak when access a non-exists file without route)

@https://bugs.php.net/bug.php?id=61785

When access a non exists file in builtin web server. with --enable-debug it report
leaks.

When send error page, It call php_output_deactivate() it disabled the sent_headers
callback but it will emalloc default_content-type. then it leaks.

So I think set SG(sapi_headers).send_default_content_type to 0 temporary can avoid
leaking.

BTW: I fixed a typo in test file.

Xinchen @laruence will you take a look at this fix?

Thanks.