[wp-hackers] Discussion about Optional Closing PHP tags in the
WordPress Library
Jacob Santos
wordpress at santosj.name
Thu Jun 19 00:20:58 GMT 2008
Jason Webster wrote:
> Stephen Rider wrote:
>> I seem to recall very early in my PHP hacking days being told that I
>> was _supposed_ to leave a single line break at the end of the file
>> after the closing "?>"
>>
> This causes the whitespace to be injected into the content sent to the
> end user and very often causes session initialization issues (ie,
> "headers already sent") errors.
No, it causes nothing, because PHP ignores the first line break after
the closing PHP tag. If you had two, then you would have issues.
Jacob Santos
More information about the wp-hackers
mailing list