|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-03-12 21:34 UTC] cataphract@php.net
[2012-03-12 21:34 UTC] cataphract@php.net
-Status: Open
+Status: Not a bug
[2012-03-13 17:08 UTC] tokul at users dot sourceforge dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 01:00:02 2025 UTC |
Description: ------------ You have typo in htmlspecialchars() manual (online version for 2012-03-12 date). ENT_COMPAT is not the same as ENT_HTML401. Function can't have two different values as default. ENT_COMPAT is int(2). ENT_HTML401 is int(0) Sorry, if it is already fixed in source repo. I can see only online version and I can't find htmlspecialchars related report on this problem. Test script: --------------- <?php var_dump(ENT_COMPAT); var_dump(ENT_HTML401); var_dump(htmlspecialchars('"')); Expected result: ---------------- int(2) int(0) string(6) """