-
Notifications
You must be signed in to change notification settings - Fork 733
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use 'ENT_QUOTES|ENT_SUBSTITUTE' for HTML encoding and decoding functions #361
Conversation
Thanks for the PR, this will not be merged until we're closer to the PHP 8.1 release as per the current doc process. Might need to be rebased in 6-8 months time. |
Yep, np, and feel free to edit/delete if it's not right. |
@Girgias Is there a "pending milestone" tag or something along those lines to make it more apparent in the PR list? Sorry to be a bother, it's just that it makes it harder to sort all the open PRs when I go through the list periodically to try and help PRs along. |
Did these changes deliberately exclude |
@salathe, nor do the stubs specify |
I'm fairly sure We did consider using
|
Yes, and it might be good to add it (also to the stubs) for clarity. However, |
Thanks @craigfrancis Apologies for not looking at this sooner and raising the inconsistency while the PR was still open. Going forward, I think the docs should have the default value be at least consistent within each page, even if Thoughts, violent disagreement, volunteers? |
I have a slight preference to including Some developers might see that and then decide to use If everyone is happy with that, are you in a better position to make that change? If it's a pain, let me know, and I should be able to create a new pull-request on the weekend. |
But please fix the stubs first (otherwise this is likely to be overwritten later): https://github.com/php/php-src/blob/c37b35fa41be7ec4278e51c6b6715a8805ebb725/ext/standard/basic_functions.stub.php#L686 |
I've created a pull-request to update the stubs: php/php-src#7514 |
I'm not familiar with the PHP development process, but it looks like PR 6583 has been accepted in 50eca61, and will be in PHP 8.1.
These should update the documentation to reflect this change.