Skip to content
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

htmlspecialchars 関連の関数で、flags パラメータのデフォルト値の説明に不整合がある #17

Closed
mumumu opened this issue Oct 3, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@mumumu
Copy link
Member

mumumu commented Oct 3, 2021

https://www.php.net/manual/ja/function.htmlspecialchars.php

PHP 8.1 で、htmlspecialchars 関連の関数のデフォルト値は、ENT_COMPAT から ENT_QUOTES | ENT_SUBSTITUTE に変更され、マニュアルにもそれが反映されている。

だが、flags パラメータのデフォルト値の説明は、以下のように ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401 となっている。

screenshot-1633257357

@mumumu
Copy link
Member Author

mumumu commented Oct 3, 2021

現状、本件は下記の状況であり、修正が進行中であるが、時間がかかりそうな模様。

@mumumu mumumu added the bug Something isn't working label Oct 3, 2021
@mumumu
Copy link
Member Author

mumumu commented Oct 25, 2021

relates to: php/doc-en#1042

@mumumu
Copy link
Member Author

mumumu commented Oct 27, 2021

Fixed by d143b83 and php/doc-en@e4b5274 . Thank you for great fix, @saundefined !

@mumumu mumumu closed this as completed Oct 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant