Skip to content

Commit aa0f32b

Browse files
committed
output: Fail starting to output buffer when the output layer is deactivated
Fixes #20837.
1 parent 03113b0 commit aa0f32b

File tree

3 files changed

+2027
-0
lines changed

3 files changed

+2027
-0
lines changed

main/output.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,10 @@ PHPAPI zend_result php_output_handler_start(php_output_handler *handler)
538538
HashTable *rconflicts;
539539
php_output_handler_conflict_check_t conflict;
540540

541+
if (!(OG(flags) & PHP_OUTPUT_ACTIVATED)) {
542+
return FAILURE;
543+
}
544+
541545
if (php_output_lock_error(PHP_OUTPUT_HANDLER_START) || !handler) {
542546
return FAILURE;
543547
}

0 commit comments

Comments
 (0)