History log of /PHP_5_5/ext/standard/html.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
47c9027 03-Jan-2014 Xinchen Hui <laruence@php.net> Bump year
/PHP_5_5/ext/standard/html.c
9ad97cd 15-Aug-2013 Christopher Jones <sixd@php.net> Reduce (some) compile noise of 'unused variable' and 'may be used uninitialized' warnings.
/PHP_5_5/ext/standard/html.c
77ee200 17-Jan-2013 Gustavo Lopes <glopes@nebm.ist.utl.pt> Fix bug #64011 (get_html_translation_table())

get_html_translation_table() with encoding ISO-8859-1 and HTMLENTITIES
was broken. Only entities for characters U+0000 to U+0040 were being
included in the result.
/PHP_5_5/ext/standard/html.c
0a7395e 01-Jan-2013 Xinchen Hui <laruence@php.net> Happy New Year
/PHP_5_5/ext/standard/html.c
cfdd6c5 05-Feb-2012 Gustavo André dos Santos Lopes <cataphract@php.net> MFH: 7dcada1 for 5.4

- Fixed possible unsigned int wrap around in html.c. Note that 5.3 has the same
(potential) problem; even though the code is substantially different, the
variable name and the fashion it was incremented was kept.
/PHP_5_5/ext/standard/html.c
ed98579 13-Mar-2012 Gustavo André dos Santos Lopes <cataphract@php.net> - Fixed bug #61374: html_entity_decode tries to decode code points that don't
exist in ISO-8859-1.
/PHP_5_5/ext/standard/html.c
d4cf399 05-Feb-2012 Gustavo André dos Santos Lopes <cataphract@php.net> - Merge r323056 (see bug #60965).
/PHP_5_5/ext/standard/html.c
4e19825 01-Jan-2012 Felipe Pena <felipe@php.net> - Year++
/PHP_5_5/ext/standard/html.c
79bb425 31-Aug-2011 Gustavo André dos Santos Lopes <cataphract@php.net> - Less GCC warnings; code less readable, yay!
- Fixed html_tables.h generaration in 64-bit archs.
- Closes bug #55394 - Patch to suppress initialization warnings in html.c
#signed/unsigned mismatches for another day
#regenerated tables on another commit
/PHP_5_5/ext/standard/html.c
5540b64 10-Aug-2011 Xinchen Hui <laruence@php.net> Eliminated compiler's warnings
/PHP_5_5/ext/standard/html.c
a61534e 09-Aug-2011 Gustavo André dos Santos Lopes <cataphract@php.net> - Elided unused argument in internal linkage function.
/PHP_5_5/ext/standard/html.c
547a960 20-Mar-2011 Gustavo André dos Santos Lopes <cataphract@php.net> - Fixed bug #54332 (trunk only, null pointer deref due to information loss on long to int conversion)
- Fixed some int* pointers being passed as size_t*.
/PHP_5_5/ext/standard/html.c
4a946a9 25-Jan-2011 Gustavo André dos Santos Lopes <cataphract@php.net> - Fixed CHARSET_UNICODE_COMPAT (ISO-8859-1 is compatible in the relevant sense).
- Fixed usage of zend_multibyte_get_internal_encoding (its return cannot be
cast to char*).
- Change tests to reflect that charset detection now relies on
internal_encoding, not on current_internal_encoding.
NOTE: This fixes the changes in rev 306077, but it remains that that change
introduced a BC break. I assumed it was intentional
/PHP_5_5/ext/standard/html.c
0203cc3 01-Jan-2011 Felipe Pena <felipe@php.net> - Year++
/PHP_5_5/ext/standard/html.c
755c2cd 08-Dec-2010 Dmitry Stogov <dmitry@php.net> Removed compile time dependency from ext/mbstring
/PHP_5_5/ext/standard/html.c
71dfe80 17-Nov-2010 Pierrick Charron <pierrick@php.net> Remove unused variables
/PHP_5_5/ext/standard/html.c
e69b1ff 27-Oct-2010 Gustavo André dos Santos Lopes <cataphract@php.net> - Fixed bug #49687 (utf8_decode vulnerabilities and deficiencies in the number
of reported malformed sequences). (Gustavo)
#Made a public interface for get_next_char/utf-8 in trunk to use in utf8_decode.
#In PHP 5.3, trunk's get_next_char was copied to xml.c because 5.3's
#get_next_char is different and is not prepared to recover appropriately from
#errors.
/PHP_5_5/ext/standard/html.c
18fa045 25-Oct-2010 Ilia Alshanetsky <iliaa@php.net> Code cleanup & CS
/PHP_5_5/ext/standard/html.c
20e2c5f 24-Oct-2010 Gustavo André dos Santos Lopes <cataphract@php.net> - Fixed uninitialized and 1 character short local variable.
/PHP_5_5/ext/standard/html.c
91727cb 24-Oct-2010 Gustavo André dos Santos Lopes <cataphract@php.net> - Completed rewrite of html.c. Except for determine_charset, almost nothing
remains.
- Fixed bug on determine_charset that was preventing correct detection in
combination with internal mbstring encoding "none", "pass" or "auto".
- Added profiles for entity encode/decode for HTMl 4.01, XHTML 1.0, XML 1.0
and HTML 5. Added the constants ENT_HTML401, ENT_XML1, ENT_XHTML and
ENT_HTML5.
- htmlentities()/htmlspecialchars(), when told not to double encode, verify
the correctness of the existenting entities more thoroughly.
It is checked whether the numerical entity represents a valid unicode code
point (number is between 0 and 0x10FFFF). If using the flag ENT_DISALLOWED,
it is also checked whether that numerical entity is valid in selected
document. In HTML 4.01, all the numerical entities that represent a Unicode
code point (< U+10FFFFFF) are valid, but that's not the case with other
document types. If the entity is not valid, & is encoded to &amp;.
For named entities, the check is also more thorough. While before the only
check would be to determine if the entity was constituted by alphanumeric
characters, now it is checked whether that entity is necessarily defined for
the target document type. Otherwise, & is encoded to &amp;.
- For html_entity_decode(), only valid numerical and named entities (as defined
above for htmlentities()/htmlspecialchars() + !double_encode) are decoded.
But there is in this case one additional check. Entities that represent
non-SGML or otherwise invalid characters are not decoded. Note that, in
HTML5, U+000D is a valid literal character, but the entity &#x0D is not
valid and is therefore not decoded.
- The hash tables lazily created for decoding in html_entity_decode() that were
added recently were substituted by static hash tables. Instead of 1 hash
table per encoding, there's only one hash table per document type defined in
terms of unicode code points. This means that for charsets other than UTF-8
and ISO-8859-1, a conversion to unicode code points is necessary before
decoding.
- On the encoding side, the ad hoc ranges of entities of the translation
tables, which mapped (in general) non-unicode code points to HTML entities
were replaced by three-stage tables for HTML 4 and HTML 5. This mapping
tables are defined only in terms of unicode code points, so a conversion
is necessary for charsets other than UTF-8 and ISO-8859-1. Even so, the
multi-stage table is much faster than the previous method, by a factor
of 5; the conversion to unicode is a small penalty because it's just a
simple table lookup.
XML 1.0/htmlspecialchars() uses a simple table instead of a three-stage
table.
- Added the flag ENT_SUBSTITUTE, which makes htmlentities()/htmlspecialchars()
replace the invalid multibyte sequences with U+FFFD (UTF-8) or &#FFFD;
(other encodings).
- Added the flag ENT_DISALLOWED. Implements FR #52860. Characters that cannot
appear literally are replaced by U+FFFD (UTF-8) or &#FFFD; (otherwise).
An alternative implementation would be to encode those characters into
numerical entities, but that would only work in HTML 4.01 due to limitations
on the values of numerical entities in other document types. See also the
effects on htmlentities()/htmlspecialchars() with !double_encode above.
/PHP_5_5/ext/standard/html.c
bfcb754 14-Oct-2010 Gustavo André dos Santos Lopes <cataphract@php.net> - Fixed get_next_char(), used by htmlentities/htmlspecialchars, accepting
certain ill-formed UTF-8 sequences.
/PHP_5_5/ext/standard/html.c
4de6c3a 12-Oct-2010 Gustavo André dos Santos Lopes <cataphract@php.net> - Added a 3rd parameter to get_html_translation_table. It now takes a charset
hint, like htmlentities et al.
- Fixed bug #49407 (get_html_translation_table doesn't handle UTF-8).
- Fixed bug #25927 (get_html_translation_table calls the ' &#39; instead of
&#039;).
- Fixed tests for get_html_translation_table and unified the Windows and
non-Windows versions of the tests.
/PHP_5_5/ext/standard/html.c
f4a896c 11-Oct-2010 Gustavo André dos Santos Lopes <cataphract@php.net> - PHP uses a big endian representation when it converts the
code unit sequences to integers so as to store the entity
maps. Code in traverse_for_entities assumed little
endian. Fixed.
(in practice, due to the absence of unicode and entity
mappings for multi-byte encodings -- except UTF-8 --, this
doesn't matter, so the relevant code was commented out for
performance reasons).
/PHP_5_5/ext/standard/html.c
7aa43a8 10-Oct-2010 Gustavo André dos Santos Lopes <cataphract@php.net> - Revamp of the decoding portion of html.c.
- Dramatic improvements on the performance of html_entity_decode and htmlspecialchars_decode, as the
string is now traversed only once. Speedups of 20 to 25 times with Windows release builds and a
~250 characters string (for 2nd and subsequent calls).
- Consistent behavior on html_entity_decode. For instance, the entity in "&&lt;" would be decoded,
but not "&&#233;". Not anymore. The code path for "basic" and non-basic entities is now mostly
shared.
- Code of html_entity_decode and htmlspecialchars_decode is now shared.
- [DOC] More consistent behavior of htmlspecialchars_decode. Instead of translating only &lt;, &gt;,
&amp;, &quot;, &#039; and &#39;, now e.g. &#34;, &apos;, &#0039;, &#x27;, etc. are also decoded.
- [DOC] Previous translation of unicode code points in numerical entities was seriously broken. When
the code points for some character were not the same in unicode and the target encoding, the
behavior could be an erroneous translation (e.g. 0x80-0xA0 in win-1252) or no translation at all.
Added unicode translation tables for all single-byte encodings. Entities are not translated for
multi-byte entities, except for ASCII characters whose code points are shared. We could add
the huge translation tables (several thousand elements) for those encodings in the future.
- Fixed numerical entities that after # had text accepted by strcol being accepted.
- Much more commented and well-structured code...
- Tests for get_html_translation_table()) are broken. I stared fixing the tests, but then I realized
it was completely helpless because get_html_translation_table() is broken by not handling
multi-byte characters correctly.
/PHP_5_5/ext/standard/html.c
dd5d1b2 08-Oct-2010 Gustavo André dos Santos Lopes <cataphract@php.net> - Fixed a typo in rev #304208 (24 instead of 34/'"').
- Improved the test bug53021.phpt to reflect other fixes in rev #304208.
- Updated NEWS to reflect other fixes in rev #304208.
/PHP_5_5/ext/standard/html.c
df42830 08-Oct-2010 Gustavo André dos Santos Lopes <cataphract@php.net> - Fixed bug #53021 (In html_entity_decode, failure to convert numeric entities with ENT_NOQUOTES and ISO-8859-1).
/PHP_5_5/ext/standard/html.c
cb50011 23-Sep-2010 Kalle Sommer Nielsen <kalle@php.net> Fixed compiler warnings in the standard library
/PHP_5_5/ext/standard/html.c
906dd4e 23-Mar-2010 Rasmus Lerdorf <rasmus@php.net> Switch default_charset, if not specified, from ISO-8859-1 to UTF-8
I have been wanting to make this change for years, but there is a small
chance of BC issues, so it shouldn't go into a minor release.
/PHP_5_5/ext/standard/html.c
73ba495 12-Mar-2010 Moriyoshi Koizumi <moriyoshi@php.net> - Forgot to commit this patch. Sorry.
/PHP_5_5/ext/standard/html.c
9ba1e81 03-Jan-2010 Sebastian Bergmann <sebastian@php.net> sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php
/PHP_5_5/ext/standard/html.c
7d9a7db 22-Dec-2009 Moriyoshi Koizumi <moriyoshi@php.net> - Fix bug #46478 (htmlentities() uses obsolete mapping table for character
entity references)
/PHP_5_5/ext/standard/html.c
413196c 07-Dec-2009 Moriyoshi Koizumi <moriyoshi@php.net> - Take account of surrogate pairs.
/PHP_5_5/ext/standard/html.c
20737ba 13-Oct-2009 Moriyoshi Koizumi <moriyoshi@php.net> - Bug #49785: take 5. What the hell happened to me...
/PHP_5_5/ext/standard/html.c
884cf3f 12-Oct-2009 Moriyoshi Koizumi <moriyoshi@php.net> - Bug #49785: take 4 - typo. this flaw is unharmful since the return value of get_next_char() is only used when UTF-8 is specified to the third argument.
/PHP_5_5/ext/standard/html.c
1835a63 11-Oct-2009 Moriyoshi Koizumi <moriyoshi@php.net> - A couple more fix for my previous fix.
(one of the fix by Arnaud Le Blanc. Thanks!)
/PHP_5_5/ext/standard/html.c
9d19866 09-Oct-2009 Moriyoshi Koizumi <moriyoshi@php.net> - Fixed bug #49785 (insufficient input string validation of htmlspecialchars()).
/PHP_5_5/ext/standard/html.c
08659c2 31-Dec-2008 Sebastian Bergmann <sebastian@php.net> MFH: Bump copyright year, 3 of 3.
/PHP_5_5/ext/standard/html.c
18794ad 26-Nov-2008 Arnaud Le Blanc <lbarnaud@php.net> MFH: Added ENT_IGNORE as a compatibility flag for htmlentities() and
htmlspecialchars() to skip multibyte sequences intead of returning an
empty string (as iconv's //IGNORE). These functions will still never
return an invalid or incomplete multibyte sequence.
Fixes #43896
/PHP_5_5/ext/standard/html.c
a05edaf 26-Nov-2008 Arnaud Le Blanc <lbarnaud@php.net> MFB 5.2
/PHP_5_5/ext/standard/html.c
d69dfa4 21-Oct-2008 Arnaud Le Blanc <lbarnaud@php.net> MFH: initialize optional vars
/PHP_5_5/ext/standard/html.c
0699894 18-Aug-2008 Moriyoshi Koizumi <moriyoshi@php.net> - MFH: beware of signedness
/PHP_5_5/ext/standard/html.c
71e50de 10-Aug-2008 Arnaud Le Blanc <lbarnaud@php.net> MFH: Fixed bug #45581 (htmlspecialchars() double encoding &#x hex items)
/PHP_5_5/ext/standard/html.c
fce4f96 11-Apr-2008 Felipe Pena <felipe@php.net> MFB: Fixed bug #44703 (htmlspecialchars() does not detect bad character set argument)
/PHP_5_5/ext/standard/html.c
223a53f 29-Jan-2008 Stanislav Malyshev <stas@php.net> rm cruft
/PHP_5_5/ext/standard/html.c
37a607c 28-Jan-2008 Antony Dovgal <tony2001@php.net> fix #43927 (koi8r is missing from html_entity_decode())
patch by andy at demos dot su
/PHP_5_5/ext/standard/html.c
23e3baf 25-Jan-2008 Scott MacVicar <scottmac@php.net> Fix html_entity_decode when converting numeric html entities, the numeric values for the extended characters don't correspond to that of windows-1251 and cp866.
/PHP_5_5/ext/standard/html.c
d1dded8 31-Dec-2007 Sebastian Bergmann <sebastian@php.net> MFH: Bump copyright year, 2 of 2.
/PHP_5_5/ext/standard/html.c
14ca778 11-Dec-2007 Jani Taskinen <jani@php.net> MFH:- Revert previous patch, it was correct to do this, error is logged if logging is enabled
/PHP_5_5/ext/standard/html.c
b984960 11-Dec-2007 Jani Taskinen <jani@php.net> MFH: fix error displaying
/PHP_5_5/ext/standard/html.c
aa3eee1 05-Oct-2007 Jani Taskinen <jani@php.net> MFH:- Moved the old regex functions to own extension: ereg
/PHP_5_5/ext/standard/html.c
6e1dfff 03-Oct-2007 Stanislav Malyshev <stas@php.net> MFB do not accept partial multibyte sequences in html* functions
/PHP_5_5/ext/standard/html.c
2c5368c 27-May-2007 Nuno Lopes <nlopess@php.net> fix handling of &&amp; by htmlentities 'no-double-encode'
expand the test cases
/PHP_5_5/ext/standard/html.c
452524f 27-May-2007 Nuno Lopes <nlopess@php.net> fix the new 'no-double-encoding' feature of htmlspecialchars() (the length for char search was wrong. this could lead to crashes..)
/PHP_5_5/ext/standard/html.c
df03be1 25-May-2007 Hannes Magnusson <bjori@php.net> Allow skipping hint_charset (fixes ext/standard/tests/strings/htmlentities18.phpt)
/PHP_5_5/ext/standard/html.c
cdd3742 22-May-2007 Hannes Magnusson <bjori@php.net> Update proto&arginfo for double_encode in htmlspecialchars()&htmlentities()
/PHP_5_5/ext/standard/html.c
c98cbb6 22-May-2007 Ilia Alshanetsky <iliaa@php.net> [DOC] Added a 4th parameter flag to htmlspecialchars() and htmlentities()
that makes the function not encode existing html entities. The feature is
disabled by default and can be activated by passing FALSE as the 4th param
/PHP_5_5/ext/standard/html.c
efad70c 27-Feb-2007 Ilia Alshanetsky <iliaa@php.net> snprintf() -> slprintf()
/PHP_5_5/ext/standard/html.c
27c6f40 24-Feb-2007 Ilia Alshanetsky <iliaa@php.net> Eliminate strncpy() and simplify code
/PHP_5_5/ext/standard/html.c
5ecffe6 21-Feb-2007 Ilia Alshanetsky <iliaa@php.net> Use strlcpy() rather then strcpy()
/PHP_5_5/ext/standard/html.c
84a827e 18-Jan-2007 Antony Dovgal <tony2001@php.net> MFH
/PHP_5_5/ext/standard/html.c
4223aa4 01-Jan-2007 Sebastian Bergmann <sebastian@php.net> MFH: Bump year.
/PHP_5_5/ext/standard/html.c
6aec52b 21-Dec-2006 Antony Dovgal <tony2001@php.net> MFH
/PHP_5_5/ext/standard/html.c
3a53393 01-Nov-2006 Ilia Alshanetsky <iliaa@php.net> Added missing boundary checks.
/PHP_5_5/ext/standard/html.c
39219cf 02-Oct-2006 Hannes Magnusson <bjori@php.net> protos
/PHP_5_5/ext/standard/html.c
f3c1722 15-Aug-2006 Antony Dovgal <tony2001@php.net> MFH: don't try to use "auto", "none" and "pass" charsets returned from mbstring
/PHP_5_5/ext/standard/html.c
8fe5bc7 25-Feb-2006 Rasmus Lerdorf <rasmus@php.net> MFH - binary safety patch from Moriyoshi
/PHP_5_5/ext/standard/html.c
5bd9322 01-Jan-2006 foobar <sniper@php.net> bump year and license version
/PHP_5_5/ext/standard/html.c
23e671a 03-Aug-2005 foobar <sniper@php.net> - Bumber up year
/PHP_5_5/ext/standard/html.c
6cea418 30-Jun-2005 foobar <sniper@php.net> Netware also uses autoconf based config now
/PHP_5_5/ext/standard/html.c
5815b03 11-May-2005 Joe Orton <jorton@php.net> Mark pointers in entity tables as const.
/PHP_5_5/ext/standard/html.c
bd2e99e 11-May-2005 Joe Orton <jorton@php.net> - Fixed bug #29119 (html_decode_entities handling of U+0152-U+0192 range)
(merge error from 4.3)
/PHP_5_5/ext/standard/html.c
8209835 01-May-2005 Ilia Alshanetsky <iliaa@php.net> Fixed bug #32608 (html_entity_decode() converts single quotes even if
ENT_NOQUOTES is given).
/PHP_5_5/ext/standard/html.c
3796738 10-Mar-2005 Joe Orton <jorton@php.net> Fix /*-within-comment warning from GCC.
/PHP_5_5/ext/standard/html.c
16d67ab 09-Mar-2005 Derick Rethans <derick@php.net> - MF43: Fixed bug #28067 (partially incorrect utf8 to htmlentities mapping).
/PHP_5_5/ext/standard/html.c
0dbe348 08-Mar-2005 Ilia Alshanetsky <iliaa@php.net> Improve the performance of htmlspecialchars_decode() by 20-30%.
/PHP_5_5/ext/standard/html.c
975ff6f 07-Mar-2005 Ilia Alshanetsky <iliaa@php.net> Added htmlspecialchars_decode() function for fast conversion from
htmlspecialchars() generated entities back to characters.
/PHP_5_5/ext/standard/html.c
96d7eeb 06-Mar-2005 Ilia Alshanetsky <iliaa@php.net> Make html_entity_decode() 15-20% faster by avoiding pointless string
duplication.
/PHP_5_5/ext/standard/html.c
20a5a1d 11-Jan-2005 Moriyoshi Koizumi <moriyoshi@php.net> - Fix the fix :)
/PHP_5_5/ext/standard/html.c
ee18958 11-Jan-2005 Moriyoshi Koizumi <moriyoshi@php.net> - Fix htmlentities() / html_decode_entity() UTF-8 related bugs
initially reported by Kamesh Jayachandran
/PHP_5_5/ext/standard/html.c
a139dbf 09-Jan-2005 foobar <sniper@php.net> - Fix outside-source-tree builds. Always include generated header files
with #include <some_header.h> to make sure the correct file is used.
/PHP_5_5/ext/standard/html.c
46bc2c5 19-Jul-2004 Moriyoshi Koizumi <moriyoshi@php.net> - Fix bug #29199 (html_entity_decode() misbehaves with UTF-8)
/PHP_5_5/ext/standard/html.c
cfb8439 13-Jul-2004 Wez Furlong <wez@php.net> add missing break
/PHP_5_5/ext/standard/html.c
c8c5e8b 17-Apr-2004 Derick Rethans <derick@php.net> - MFH: Fix for bug #28042 (greek letters in html to entitity mapping not
correct)
/PHP_5_5/ext/standard/html.c
bf6b0dc 06-Mar-2004 Ilia Alshanetsky <iliaa@php.net> Fixed bug #27505 (htmlentities() does not handle BIG5 correctly).
/PHP_5_5/ext/standard/html.c
dbeb415 08-Jan-2004 Andi Gutmans <andi@php.net> - A belated happy holidays and PHP 5
/PHP_5_5/ext/standard/html.c
d78e453 10-Dec-2003 Derick Rethans <derick@php.net> - Test before commit - test before commit
/PHP_5_5/ext/standard/html.c
009e849 10-Dec-2003 Derick Rethans <derick@php.net> - Added support for MacRoman encoding to htmlentities(). (Marcus Bointon)
/PHP_5_5/ext/standard/html.c
bde1fe4 21-Oct-2003 Moriyoshi Koizumi <moriyoshi@php.net> Missing '&' in the result of get_html_translation_table()
/PHP_5_5/ext/standard/html.c
6745000 02-Oct-2003 Moriyoshi Koizumi <moriyoshi@php.net> Fix for the fix for #25707
/PHP_5_5/ext/standard/html.c
04bcd89 02-Oct-2003 Moriyoshi Koizumi <moriyoshi@php.net> Add support for hexadecimal-style numeric entities (&#x..;)
/PHP_5_5/ext/standard/html.c
edd18ba 02-Oct-2003 Moriyoshi Koizumi <moriyoshi@php.net> Drop multibyte character support in html_entity_decode().
# This has never worked as expected.
/PHP_5_5/ext/standard/html.c
6474089 02-Oct-2003 Moriyoshi Koizumi <moriyoshi@php.net> Fixed bug #25707 (html_entity_decode over-decodes &amp;lt;)
/PHP_5_5/ext/standard/html.c
f68c7ff 10-Jun-2003 James Cox <imajes@php.net> updating license information in the headers.
/PHP_5_5/ext/standard/html.c
ea39409 08-May-2003 Moriyoshi Koizumi <moriyoshi@php.net> Added missing break
/PHP_5_5/ext/standard/html.c
e911b39 08-May-2003 Moriyoshi Koizumi <moriyoshi@php.net> Added "&euro;" support for htmlentities() and html_entity_decode()
/PHP_5_5/ext/standard/html.c
ee86979 08-May-2003 Moriyoshi Koizumi <moriyoshi@php.net> I should have tested more carefully..
/PHP_5_5/ext/standard/html.c
6ed4fd1 08-May-2003 Moriyoshi Koizumi <moriyoshi@php.net> Improved html_entity_decode() so it can handle multibyte charsets and
numeric entities.
/PHP_5_5/ext/standard/html.c
b874a54 05-May-2003 Moriyoshi Koizumi <moriyoshi@php.net> Added links to HTML entity resources
/PHP_5_5/ext/standard/html.c
7638a25 02-May-2003 Moriyoshi Koizumi <moriyoshi@php.net> Fixed bug #23449
/PHP_5_5/ext/standard/html.c
cec89b2 24-Apr-2003 David Hill <ddhill@php.net> Fix compiler error on null statement in switch
/PHP_5_5/ext/standard/html.c
0d248d8 22-Apr-2003 Rasmus Lerdorf <rasmus@php.net> MFB: &039; which is a single-quote may also come in as &39;
I see no reason not to support both in html_entity_decode()
/PHP_5_5/ext/standard/html.c
570e929 24-Mar-2003 Moriyoshi Koizumi <moriyoshi@php.net> Fixed bug #22834 (compile failure due to ugly implicit casts)
/PHP_5_5/ext/standard/html.c
93b250f 24-Mar-2003 Moriyoshi Koizumi <moriyoshi@php.net> Added koi8-r, cp866, and cp1251 support for htmlentities
/PHP_5_5/ext/standard/html.c
1f54605 08-Mar-2003 Stefan Esser <sesser@php.net> wrong place.
/PHP_5_5/ext/standard/html.c
76c427f 08-Mar-2003 Stefan Esser <sesser@php.net> fixing memory leak
/PHP_5_5/ext/standard/html.c
5c90216 06-Mar-2003 David Hill <ddhill@php.net> 64-bit correction to variables passed to zend_parse_parameters
@64-bit correction to variables passed to zend_parse_parameters (Dave)
/PHP_5_5/ext/standard/html.c
d2e2fbc 22-Feb-2003 Ilia Alshanetsky <iliaa@php.net> int/long change.
/PHP_5_5/ext/standard/html.c
38ad0e9 24-Jan-2003 Ilia Alshanetsky <iliaa@php.net> zend_error -> php_error_docref.
/PHP_5_5/ext/standard/html.c
830298b 03-Jan-2003 Anantha Kesari H Y <hyanantha@php.net> Modified for NetWare.
/PHP_5_5/ext/standard/html.c
0ff59a1 02-Jan-2003 Ilia Alshanetsky <iliaa@php.net> Fixed bug #21338 (crash inside html_entity_decode() when "" is passed).
Added test case for the bug.
/PHP_5_5/ext/standard/html.c
b506f5c 31-Dec-2002 Sebastian Bergmann <sebastian@php.net> Bump year.
/PHP_5_5/ext/standard/html.c
53b333d 12-Dec-2002 Ilia Alshanetsky <iliaa@php.net> Fixed misspelling of the Greek letter lambda,
noticed by jmartin-php@notamusica.com.
/PHP_5_5/ext/standard/html.c
3bbcb0d 12-Dec-2002 Moriyoshi Koizumi <moriyoshi@php.net> Fixed bug #20934 (htmlspecialchars returns latin1 from UTF-8)
/PHP_5_5/ext/standard/html.c
47388f2 16-Nov-2002 Sebastian Bergmann <sebastian@php.net> Fix Win32 build.
/PHP_5_5/ext/standard/html.c
7222abd 15-Nov-2002 Moriyoshi Koizumi <moriyoshi@php.net> Include php_config.h for HAVE_MBSTRING
/PHP_5_5/ext/standard/html.c
f300bdc 11-Nov-2002 Moriyoshi Koizumi <moriyoshi@php.net> Added support for windows code pages.
/PHP_5_5/ext/standard/html.c
488255c 11-Nov-2002 Moriyoshi Koizumi <moriyoshi@php.net> WS
/PHP_5_5/ext/standard/html.c
f498b68 29-Oct-2002 Moriyoshi Koizumi <moriyoshi@php.net> WS fix
/PHP_5_5/ext/standard/html.c
16fc9f6 25-Oct-2002 Moriyoshi Koizumi <moriyoshi@php.net> Fix build if mbstring is enabled as shared extension.
/PHP_5_5/ext/standard/html.c
d347143 24-Oct-2002 Moriyoshi Koizumi <moriyoshi@php.net> Improved determine_charset() to look up SG(default_charset) value
/PHP_5_5/ext/standard/html.c
429f8fa 24-Oct-2002 Moriyoshi Koizumi <moriyoshi@php.net> Fixed ISO-8859-1 handling.
/PHP_5_5/ext/standard/html.c
f2269ef 24-Oct-2002 Moriyoshi Koizumi <moriyoshi@php.net> Added &euro; support to cp1252 table
/PHP_5_5/ext/standard/html.c
37d2a1d 23-Oct-2002 Marcus Boerger <helly@php.net> fix warning
/PHP_5_5/ext/standard/html.c
68a5d1b 22-Oct-2002 Moriyoshi Koizumi <moriyoshi@php.net> Improved determine_charset() to use mbstring.internal_encoding when the last
param is a null string. (If the param is omitted, it takes iso-8859-1 as
the default charset in favour of backwards compatibility.)
/PHP_5_5/ext/standard/html.c
ae70a4e 03-Oct-2002 Andrey Hristov <andrey@php.net> few ws fixes.
/PHP_5_5/ext/standard/html.c
b5d4b54 26-Sep-2002 Sebastian Bergmann <sebastian@php.net> Fix ZTS build.
/PHP_5_5/ext/standard/html.c
4d9d06c 26-Sep-2002 Wez Furlong <wez@php.net> Emit a warning when an unsupported charset is requested in htmlentities.
Fixed #18521.
/PHP_5_5/ext/standard/html.c
a12423f 24-Sep-2002 Wez Furlong <wez@php.net> Fix for #19570: last character in translation table is omitted.
/PHP_5_5/ext/standard/html.c
89651da 28-Aug-2002 Rasmus Lerdorf <rasmus@php.net> Description didn't match the function here
/PHP_5_5/ext/standard/html.c
ddddf39 25-Aug-2002 Wez Furlong <wez@php.net> WS
/PHP_5_5/ext/standard/html.c
728f2de 08-Jul-2002 Derick Rethans <derick@php.net> Unify error messages
/PHP_5_5/ext/standard/html.c
ca9c427 03-Jun-2002 Rasmus Lerdorf <rasmus@php.net> Make sure len is defined here
/PHP_5_5/ext/standard/html.c
a03d09e 05-May-2002 Wez Furlong <wez@php.net> Add support for remaining entities in HTML 4 for the UTF-8 encoding in
htmlentities/htmlspecial chars.
This is a fix for for #17008.
# I would *really* appreciate it if someone with a good eye could verify
# that all the entities are there and are correctly numbered; I've checked
# it three times, but it's best to be sure.
/PHP_5_5/ext/standard/html.c
e926db7 16-Mar-2002 Stefan Esser <sesser@php.net> fixed possible bufferoverflow in get_next_char
malformed input to htmlentities/htmlspecialchars
with utf-8 encoding crashed the server

ex: htmlentities("\xfd...(30times)", ENT_NOQUOTES, "utf-8");
/PHP_5_5/ext/standard/html.c
52982c4 16-Mar-2002 Wez Furlong <wez@php.net> This should help with some build problems/warnings under win32.
Someone still needs to add the streams.c file to the MSVC
project/workspace though (there are so many that I don't really know
what I am doing :-).
/PHP_5_5/ext/standard/html.c
a184f5d 16-Mar-2002 Wez Furlong <wez@php.net> * formatting, plus remove some old fopen wrappers
/PHP_5_5/ext/standard/html.c
0f65280 15-Mar-2002 Wez Furlong <wez@php.net> New PHP streams...
/PHP_5_5/ext/standard/html.c
86ca867 06-Mar-2002 Dan Kalowsky <kalowsky@php.net> quelling a warning, and ensuring now undefined behavior
/PHP_5_5/ext/standard/html.c
90613d2 28-Feb-2002 Sebastian Bergmann <sebastian@php.net> Maintain headers.
/PHP_5_5/ext/standard/html.c
3893351 11-Dec-2001 Sebastian Bergmann <sebastian@php.net> Update headers.
/PHP_5_5/ext/standard/html.c
5da651f 26-Oct-2001 Andrei Zmievski <andrei@php.net> Convert to use new parameter parsing API.
/PHP_5_5/ext/standard/html.c
c033288 25-Sep-2001 Jeroen van Wolffelaar <jeroen@php.net> Back-substitute for Z_* macro's. If it breaks some extension (the script isn't optimal, it parses for example var->zval.value incorrect) please let me know.
/PHP_5_5/ext/standard/html.c
9c5580c 15-Sep-2001 Rui Hirokawa <hirokawa@php.net> Added support for japanese encoding to htmlentites() and htmlspecialchars(). @ Added support for japanese encoding to htmlentites() and htmlspecialchars(). (Rui)
/PHP_5_5/ext/standard/html.c
78747bd 09-Sep-2001 Derick Rethans <derick@php.net> - Don't wrap lines... this is annoying while coding.
/PHP_5_5/ext/standard/html.c
9e7da02 24-Aug-2001 Wez Furlong <wez@php.net> Fix htmlspecialchars problem.
/PHP_5_5/ext/standard/html.c
f20e9fa 23-Aug-2001 Wez Furlong <wez@php.net> - Add support for chinese encodings to htmlentities/htmlspecialchars
(patch from Alan Knowles <alan_k@hklc.com>)
/PHP_5_5/ext/standard/html.c
c0404f4 11-Aug-2001 Zeev Suraski <zeev@php.net> Whitespace
/PHP_5_5/ext/standard/html.c
b00809a 08-Aug-2001 Wez Furlong <wez@php.net> Fix probs on OpenBSD-current and RedHat 6.1
/PHP_5_5/ext/standard/html.c
f1364eb 04-Jul-2001 Wez Furlong <wez@php.net> (PHP nl_langinfo) Added function when provided by OS
(PHP htmlentities, htmlspecialchars) Uses nl_langinfo to determine charset
@- Added nl_langinfo() (when OS provides it) that returns locale
information. (Wez Furlong)
# There are a lot of constants used by nl_langinfo; should we do something
# along the lines of what we do for syslog?
/PHP_5_5/ext/standard/html.c
81e2cf0 06-Jun-2001 Rasmus Lerdorf <rasmus@php.net> Fix folding and clean up some extensions
/PHP_5_5/ext/standard/html.c
25c3a3a 05-Jun-2001 Rasmus Lerdorf <rasmus@php.net> vim-6 does folding - clean up a bunch of missing folding tags plus
some misguided RINIT and RSHUTDOWN calls in a few fringe extensions
/PHP_5_5/ext/standard/html.c
8b5edf1 29-May-2001 Wez Furlong <wez@php.net> Fix compile warning
/PHP_5_5/ext/standard/html.c
d38cba8 28-May-2001 Wez Furlong <wez@php.net> Added charset awareness to htmlentities() and htmlspecialchars(); use an
optional third parameter to specify the charset; otherwise tries to determine
it from the LC_CTYPE locale setting.
/PHP_5_5/ext/standard/html.c
07a5e3f 25-Apr-2001 Andrei Zmievski <andrei@php.net> * Made ENT_* defines availabe to other functions.
* The key/variable names in WDDX are now html escaped to not break XML.
@- Fixed WDDX serialization to HTML-escape key/variable names so as not to
@ break the XML packet. (Andrei)
/PHP_5_5/ext/standard/html.c
d3ce7f2 02-Mar-2001 foobar <sniper@php.net> ws fix
/PHP_5_5/ext/standard/html.c
eb6ba01 26-Feb-2001 Andi Gutmans <andi@php.net> - Fix copyright notices with 2001
/PHP_5_5/ext/standard/html.c
96b95bd 24-Nov-2000 Andre Langhorst <waldschrott@php.net> fixed bug 7961
/PHP_5_5/ext/standard/html.c
75d73aa 12-Sep-2000 Rasmus Lerdorf <rasmus@php.net> # missed proto comments
/PHP_5_5/ext/standard/html.c
d23ad61 12-Sep-2000 Rasmus Lerdorf <rasmus@php.net> Clean up htmlspecialchars/htmlentities inconsistencies.
@Clean up htmlspecialchars/htmlentities inconsistencies. (Rasmus)
/PHP_5_5/ext/standard/html.c
461f50d 30-Aug-2000 Colin Viebrock <cmv@php.net> Remove single quote from HTMLSpecialChars() ... use addslashes(),
htmlentities(), strtr() instead.
/PHP_5_5/ext/standard/html.c
772c402 25-Jul-2000 Hartmut Holzgraefe <hholzgra@php.net> htmlspecialchars and htmlentities will now
encode single quotes to &#39;
(due to feature request in BUG ID#5254)
/PHP_5_5/ext/standard/html.c
83513d9 24-Jul-2000 David Croft <david@php.net> Changed lots of PHP 3 licence headers to PHP 4, mainly in .h files.
Added a few RCS $Id$ tags.

# Note: I have avoided changing any .h files if the corresponding .c file
# had not already been changed as I am not sure if there are any legal
# issues here. So some extensions still have PHP 3 headers.
/PHP_5_5/ext/standard/html.c
3701bc4 05-Jun-2000 Andi Gutmans <andi@php.net> - ARG_COUNT(ht) -> ZEND_NUM_ARGS() mega patch
/PHP_5_5/ext/standard/html.c
e043439 18-May-2000 Zeev Suraski <zeev@php.net> Update the license with the new clause 6
/PHP_5_5/ext/standard/html.c
4c7af66 29-Feb-2000 Andrei Zmievski <andrei@php.net> Made php_escape_html_entities() as a separate function for export.
/PHP_5_5/ext/standard/html.c
86fa2aa 19-Feb-2000 Zeev Suraski <zeev@php.net> the pipe is breaking all the time
/PHP_5_5/ext/standard/html.c
3a81634 05-Feb-2000 Zeev Suraski <zeev@php.net> Cleanup patches
/PHP_5_5/ext/standard/html.c
43ae2bf 01-Jan-2000 Sascha Schumann <sas@php.net> Happy Y2K patch! Happy new year (or the new millennium, depending on whether
you start counting at 0 or 1).
/PHP_5_5/ext/standard/html.c
a1ad287 18-Dec-1999 Zeev Suraski <zeev@php.net> - The tree compiles again
/PHP_5_5/ext/standard/html.c
3ee4e65 18-Dec-1999 Zeev Suraski <zeev@php.net> More php3_ annihilation
/PHP_5_5/ext/standard/html.c
0929985 21-Nov-1999 Egon Schmid <eschmid@php.net> Maybe later on today. Must buy some beer first.
/PHP_5_5/ext/standard/html.c
f24db30 21-Nov-1999 Thies C. Arntzen <thies@php.net> @- Implemented get_html_translation_table() function. (Thies)
(PHP get_html_translation_table) new function.
/PHP_5_5/ext/standard/html.c
f5fa291 13-Oct-1999 Thies C. Arntzen <thies@php.net> (PHP: htmlspecialchars, htmlentities): new zend-api for html-function (not worth mentioning in NEWS)
/PHP_5_5/ext/standard/html.c
c5724cb 16-Jul-1999 Zeev Suraski <zeev@php.net> License update
/PHP_5_5/ext/standard/html.c
39691be 16-May-1999 Sascha Schumann <sas@php.net> conv_proto *.[ch]
/PHP_5_5/ext/standard/html.c
0818d96 24-Apr-1999 Zeev Suraski <zeev@php.net> A lot of cleanups... Removed old thread-safe code and other redundant code and files
/PHP_5_5/ext/standard/html.c
6f7c0ed 23-Apr-1999 Zeev Suraski <zeev@php.net> Remove tls.[ch]
/PHP_5_5/ext/standard/html.c
257de2b 17-Apr-1999 Stig Bakken <ssb@php.net> First commit of re-structuring phase one. We have started using automake in
sub-directories and started to move extension code into ext/<name>. For now,
I have moved the "standard" extension (which is quite a mix of everything
right now) and the GD extension into their own subdirs in ext/.
The configure script now also runs configure in the libzend directory
automatically and makes sure php4 and libzend use the same config.cache file.
To avoid running configure in libzend, use the --no-recursion option.
"make" in php4 also builds libzend now.
The Apache module doesn't compile right now, but a fix for that is
coming up.
/PHP_5_5/ext/standard/html.c