From b050f6e4309d0bc004d17a6ce753048619db52ae Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Thu, 31 Jul 2003 19:48:05 +0000 Subject: [PATCH] MFH: Fixed bug #22154 (Possible crash when memory_limit is reached and output buffering in addition to session.use_trans_sid is used). --- NEWS | 4 ++++ main/output.c | 23 +++++++++++++---------- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/NEWS b/NEWS index 5084b148a5..96045a4723 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,9 @@ PHP 4 NEWS ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| +?? Aug 2003, Version 4.3.3RC3 +- Fixed bug #22154 (Possible crash when memory_limit is reached and + output buffering in addition to session.use_trans_sid is used). (Ilia) + 30 Jul 2003, Version 4.3.3RC2 - Improved the NSAPI SAPI module (Uwe Schindler) . Added possibility to use PHP to generate HTTP error pages (404 Not Found..) diff --git a/main/output.c b/main/output.c index 0c327e9558..c029d32209 100644 --- a/main/output.c +++ b/main/output.c @@ -379,15 +379,20 @@ PHPAPI void php_ob_set_internal_handler(php_output_handler_func_t internal_outpu /* {{{ php_ob_allocate */ -static inline void php_ob_allocate(TSRMLS_D) +static inline void php_ob_allocate(uint text_length TSRMLS_DC) { - if (OG(active_ob_buffer).size