|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-10-25 19:26 UTC] cataphract@php.net
[2010-10-25 19:38 UTC] cataphract@php.net
[2010-11-01 23:04 UTC] cataphract@php.net
[2010-11-02 00:42 UTC] felipe@php.net
-Status: Open
+Status: Assigned
-Assigned To:
+Assigned To: mike
[2010-11-02 04:49 UTC] cataphract@php.net
[2010-11-02 04:50 UTC] cataphract@php.net
-Status: Assigned
+Status: Closed
-Assigned To: mike
+Assigned To: cataphract
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 04:00:01 2025 UTC |
Description: ------------ There is a memory leak on memory allocated on \main\output.c(809): if ((handler->buffer.size - handler->buffer.used) <= buf->used) { size_t grow_int = PHP_OUTPUT_HANDLER_INITBUF_SIZE(handler->size); size_t grow_buf = PHP_OUTPUT_HANDLER_INITBUF_SIZE(buf->used - (handler->buffer.size - handler->buffer.used)); size_t grow_max = MAX(grow_int, grow_buf); handler->buffer.data = erealloc(handler->buffer.data, handler->buffer.size + grow_max); /* memory was allocated here */ handler->buffer.size += grow_max; } phpinfo() code: /* Andale! Andale! Yee-Hah! */ php_output_start_default(TSRMLS_C); php_print_info(flag TSRMLS_CC); php_output_end(TSRMLS_C); Test script: --------------- File file.php --- <?php phpinfo(); (only the non disablable modules are loaded) php-cgi -dzlib.output_compression=1 -doutput_buffering=10K file.php