]> granicus.if.org Git - php/commitdiff
Fixed unintendent clearance of PHP_OUTPUT_ACTIVATED flag
authorDmitry Stogov <dmitry@zend.com>
Mon, 10 Sep 2012 10:54:18 +0000 (14:54 +0400)
committerDmitry Stogov <dmitry@zend.com>
Mon, 10 Sep 2012 10:54:18 +0000 (14:54 +0400)
main/output.c

index d4eaa6701dbcddf565aaf44ec478fa1d9418e764..e100057ca972f3ae1c4b2b8c0883eceaaf1a2467 100644 (file)
@@ -214,7 +214,7 @@ PHPAPI void php_output_register_constants(TSRMLS_D)
  * Used by SAPIs to disable output */
 PHPAPI void php_output_set_status(int status TSRMLS_DC)
 {
-       OG(flags) = status & 0xf;
+       OG(flags) = (OG(flags) & ~0xf) | (status & 0xf);
 }
 /* }}} */