php/doc-en

Note on page for header() needs clarification.

Aberta

#2.680 aberto em 13 de ago. de 2023

 (0 comentário) (0 reação) (0 responsável)XML (882 forks)auto 404
Extension: standardQAStatus: Verifiedgood first issue

Métricas do repositório

Stars
 (596 estrelas)
Métricas de merge de PR
 (Mesclagem média 99d 23h) (90 fundiu PRs em 30d)

Description

On the manual page for header(), in the Notes section, the second note starts "You can use output buffering to get around this problem, ...".

What is "this problem"? The Wayback machine says it it refers to the paragraph right back up in the Description section about headers having to be sent before output is generated (the note was relocated during a redesign of the manual in 2007 without being edited).

Also, calling it a "problem" might be inaccurate. If it becomes a problem, then there are measures you can take to work around it, but by itself it's just an assertion that headers must precede the body.

Guia do colaborador