http_response_code
must emit a warning if headers were already flushed
#10742
Labels
http_response_code
must emit a warning if headers were already flushed
#10742
Description
The following code:
Resulted in this output:
But I expected this output instead:
I would expect about the same warning as
header()
emit. In the repro above, I have verifiedheader(string)
emits a warning, buthttp_response_code(number)
currently does not.PHP Version
any
Operating System
any
The text was updated successfully, but these errors were encountered: