- Notifications
You must be signed in to change notification settings - Fork8k
Closed
Labels
Description
Description
The following code:
<?phpecho'x';ob_end_flush();flush();// header('test: test');http_response_code(301);
Resulted in this output:
x
But I expected this output instead:
xWarning: Cannot modify response code - headers already sent by (output started at ....php:12) in ...
I would expect about the same warning asheader()
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