Please read https://wiki.php.net/rfc/howto carefully!
The elevator pitch for the RFC. The first paragraph of this section will be rendered slightly larger to give it emphasis.
Please write an introduction that helps people by providing concise context and include a representative small code snippet.
<?php setcookie('name', 'value', ['secure' => true, 'partitioned' => true]); ?>
Extend setcookie function to make it able to accept one more parameter named “Partitioned” to control CHIPS behavior.
<?php setcookie('name', 'value', ['secure' => true, 'partitioned' => true]); // will result in headers: // Set-Cookie: name=value; secure; Partitioned ?>
Remember that the RFC contents should be easily reusable in the PHP Documentation. This means, if at all possible, they should be runnable as standalone, self-contained code with the proof-of-concept implementation.
Simple example:
<?php echo "First example"; ?>
Example showing an edge case:
<?php echo "Edge case"; ?>
No breaking changes
PHP 8.5
What effect will the RFC have on IDEs, Language Servers (LSPs), Static Analyzers, Auto-Formatters, Linters and commonly used userland PHP libraries?
Will existing extensions be affected?
Describe the impact to CLI, Development web server, embedded PHP etc.
Make sure there are no open issues when the vote starts!
This section should outline areas that you are not planning to work on in the scope of this RFC, but that might be iterated upon in the future by yourself or another contributor.
This helps with long-term planning and ensuring this RFC does not prevent future work.
Pick a title that reflects the concrete choice people will vote on.
Please consult the php/policies repository for the current voting guidelines.
Links to proof of concept PR.
If there is no patch, make it clear who will create a patch, or whether a volunteer to help with implementation is needed.
After the RFC is implemented, this section should contain:
CHIPS MDN: https://developer.mozilla.org/en-US/docs/Web/Privacy/Guides/Privacy_sandbox/Partitioned_cookies
Keep this updated with features that were discussed on the mail lists.
If there are major changes to the initial proposal, please include a short summary with a date or a link to the mailing list announcement here, as not everyone has access to the wikis' version history.