Skip to content

Clarify ob_get_status buffer_size and ob_start chunk_size behavior#5260

Open
lacatoire wants to merge 1 commit intophp:masterfrom
lacatoire:fix/ob-get-status-buffer-size-doc
Open

Clarify ob_get_status buffer_size and ob_start chunk_size behavior#5260
lacatoire wants to merge 1 commit intophp:masterfrom
lacatoire:fix/ob-get-status-buffer-size-doc

Conversation

@lacatoire
Copy link
Contributor

Summary

  • Clarify buffer_size in ob_get_status(): explain it is the currently allocated buffer
    size (not the amount of data), grows dynamically, and is aligned to memory page boundaries
    (minimum 4096 bytes)
  • Document chunk_size = 1 behavior in ob_start(): the buffer is flushed after every output
    operation, effectively disabling buffering

Fixes #3816

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ob_get_status buffer_size vs chunk_size

1 participant