com php-src: RFC:continue_ob accepted: NEWS UPGRADI NG main/output.c

From: Date: Wed, 25 Mar 2015 14:22:49 +0000
Subject: com php-src: RFC:continue_ob accepted: NEWS UPGRADI NG main/output.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-85870@lists.php.net to get a copy of this message
Commit: 0ae011f3a7ed17fb1d0081f766ce5b5b73c759a6 Author: Michael Wallner <mike@php.net> Wed, 25 Mar 2015 15:22:37 +0100 Parents: 2fe6acd8f5827235774789cfc1c4e54a9eaa6c59 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0ae011f3a7ed17fb1d0081f766ce5b5b73c759a6 Log: RFC:continue_ob accepted Changed paths: M NEWS M UPGRADING M main/output.c Diff: diff --git a/NEWS b/NEWS index 31ed526..09e8852 100644 --- a/NEWS +++ b/NEWS @@ -58,6 +58,7 @@ (Anatol) . Implemented the RFC Scalar Type Decalarations v0.5. (Anthony) . Implemented the RFC Group Use Declarations. (Marcio) + . Implemented the RFC Continue Output Buffering. (Mike) - Curl: . Fixed bug #68937 (Segfault in curl_multi_exec). (Laruence) diff --git a/UPGRADING b/UPGRADING index 6ebc421..7f45aec 100644 --- a/UPGRADING +++ b/UPGRADING @@ -564,4 +564,7 @@ For more details see https://wiki.php.net/rfc/removal_of_dead_sapis_and_exts always be zero when casted to integer. . Calling a method on a non-object no longer raises a fatal error; see also: https://wiki.php.net/rfc/catchable-call-to-member-of-non-object. - . Error messages for zend_parse_parameters, type hints and conversions now always say "integer" and "float" instead of "long" and "double". + . Error messages for zend_parse_parameters, type hints and conversions now + always say "integer" and "float" instead of "long" and "double". + . Output buffering now continues to work for an aborted connection if + ignore_user_abort is set to true. diff --git a/main/output.c b/main/output.c index 22ac26a..a0a300b 100644 --- a/main/output.c +++ b/main/output.c @@ -242,9 +242,6 @@ PHPAPI int php_output_get_status(void) * Unbuffered write */ PHPAPI size_t php_output_write_unbuffered(const char *str, size_t len) { - if (OG(flags) & PHP_OUTPUT_DISABLED) { - return 0; - } if (OG(flags) & PHP_OUTPUT_ACTIVATED) { return sapi_module.ub_write(str, len); } @@ -256,13 +253,13 @@ PHPAPI size_t php_output_write_unbuffered(const char *str, size_t len) * Buffered write */ PHPAPI size_t php_output_write(const char *str, size_t len) { - if (OG(flags) & PHP_OUTPUT_DISABLED) { - return 0; - } if (OG(flags) & PHP_OUTPUT_ACTIVATED) { php_output_op(PHP_OUTPUT_HANDLER_WRITE, str, len); return len; } + if (OG(flags) & PHP_OUTPUT_DISABLED) { + return 0; + } return php_output_direct(str, len); } /* }}} */

« previous php.cvs (#85870) next »