1
0
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:
Tim Düsterhus
2026-01-10 14:37:52 +01:00
committed by GitHub
parent 60b1f59081
commit b5d6377ada
4 changed files with 34 additions and 0 deletions

View File

@@ -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;
}