1--TEST-- 2GH-16135: output buffer over-allocated for aligned chunk sizes 3--FILE-- 4<?php 5ob_start(null, 0); 6ob_start(null, 1); 7ob_start(null, 2); 8ob_start(null, 8191); 9ob_start(null, 8192); 10ob_start(null, 8193); 11var_dump(array_map(fn ($s) => $s["buffer_size"], ob_get_status(true))); 12?> 13--EXPECT-- 14array(6) { 15 [0]=> 16 int(16384) 17 [1]=> 18 int(4096) 19 [2]=> 20 int(4096) 21 [3]=> 22 int(8192) 23 [4]=> 24 int(8192) 25 [5]=> 26 int(12288) 27} 28