- Fixed inconsistent backlog default value (-1) in FPM on many systems. (fat)
- Fixed bug #53021 (In html_entity_decode, failure to convert numeric entities
- with ENT_NOQUOTES and ISO-8859-1) (Gustavo).
+ with ENT_NOQUOTES and ISO-8859-1). Fixed and extended the fix of ENT_NOQUOTES
+ in html_entity_decode that had introduced the bug (rev #185591) to other
+ encodings. Additionaly, html_entity_decode() now doesn't decode " if
+ ENT_NOQUOTES is given. (Gustavo)
- Fixed bug #52981 (Unicode casing table was out-of-date. Updated with
UnicodeData-6.0.0d7.txt and included the source of the generator program with
the distribution) (Gustavo).
code = strtol(p + 2, &next, 10);
}
- if (code == 39 && !(quote_style & ENT_HTML_QUOTE_SINGLE) ||
- code == 24 && !(quote_style & ENT_HTML_QUOTE_DOUBLE)) {
+ if (code == '\'' && !(quote_style & ENT_HTML_QUOTE_SINGLE) ||
+ code == '"' && !(quote_style & ENT_HTML_QUOTE_DOUBLE)) {
invalid_code = 1;
}
--FILE--\r
<?php\r
var_dump(unpack("H*",html_entity_decode("é", ENT_QUOTES, "ISO-8859-1")));\r
+echo "double quotes variations:", "\n";\r
+echo html_entity_decode(""", ENT_NOQUOTES, 'UTF-8'), "\n";\r
+echo html_entity_decode(""", ENT_NOQUOTES, 'UTF-8'), "\n";\r
+echo html_entity_decode(""", ENT_QUOTES, 'UTF-8'), "\n";\r
+echo html_entity_decode(""", ENT_QUOTES, 'UTF-8'), "\n";\r
+echo html_entity_decode(""", ENT_COMPAT, 'UTF-8'), "\n";\r
+echo html_entity_decode(""", ENT_COMPAT, 'UTF-8'), "\n";\r
+\r
+echo "\nsingle quotes variations:", "\n";\r
+echo html_entity_decode("'", ENT_NOQUOTES, 'UTF-8'), "\n";\r
+echo html_entity_decode("'", ENT_QUOTES, 'UTF-8'), "\n";\r
+echo html_entity_decode("'", ENT_COMPAT, 'UTF-8'), "\n";\r
--EXPECT--\r
array(1) {\r
[1]=>\r
string(2) "e9"\r
}\r
+double quotes variations:\r
+"\r
+"\r
+"\r
+"\r
+"\r
+"\r
+\r
+single quotes variations:\r
+'\r
+'\r
+'\r