mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
output: Fail starting to output buffer when the output layer is deactivated (#20846)
Fixes php/php-src#20837.
This commit is contained in:
@@ -538,6 +538,10 @@ PHPAPI zend_result php_output_handler_start(php_output_handler *handler)
|
||||
HashTable *rconflicts;
|
||||
php_output_handler_conflict_check_t conflict;
|
||||
|
||||
if (!(OG(flags) & PHP_OUTPUT_ACTIVATED)) {
|
||||
return FAILURE;
|
||||
}
|
||||
|
||||
if (php_output_lock_error(PHP_OUTPUT_HANDLER_START) || !handler) {
|
||||
return FAILURE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user