Skip to content

Commit 62d8620

Browse files
committed
Fixed unintendent clearance of PHP_OUTPUT_ACTIVATED flag
1 parent 58d6a42 commit 62d8620

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/output.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ PHPAPI void php_output_register_constants(TSRMLS_D)
214214
* Used by SAPIs to disable output */
215215
PHPAPI void php_output_set_status(int status TSRMLS_DC)
216216
{
217-
OG(flags) = status & 0xf;
217+
OG(flags) = (OG(flags) & ~0xf) | (status & 0xf);
218218
}
219219
/* }}} */
220220

0 commit comments

Comments
 (0)