[php-src] PR #16145: Add headers handler in CLI SAPI
| From: | joanhey | Date: | Mon, 30 Sep 2024 21:35:48 +0000 |
| Subject: | [php-src] PR #16145: Add headers handler in CLI SAPI | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-28920@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/16145
Author: joanhey
Check issue #12304
With this change, we can use the headers from CLI SAPI. But the most important think is that we can
also use setcookie() and sessions.
All the included tests pass.
Only fail the actual
header() and friends
[ext/standard/tests/general_functions/head.phpt] that test the old behavior.
I can change this test if this PR will be accepted.
https://github.com/joanhey/php-src/blob/cli-header-handler/ext/standard/tests/general_functions/head.phpt
I don't think that this feature need an RFC, but you'll say it.
Thank you