php-src/ext
Gustavo André dos Santos Lopes 91727cb844 - 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.
2010-10-24 15:01:02 +00:00
..
bcmath Add some bcmath tests 2010-03-08 15:16:51 +00:00
bz2 Fix bug #52826 (phpinfo is incorrect for bzip2 stream wrapper). 2010-09-13 07:41:39 +00:00
calendar Fixed bug #52744 (cal_days_in_month incorrect for December 1 BCE). Original 2010-09-09 06:41:23 +00:00
com_dotnet There are a few cases where we can save a TSRMLS_FETCH() call here 2010-09-23 04:50:26 +00:00
ctype revert change #298288: Remove old dsp/dsw/makefile files 2010-04-28 14:41:51 +00:00
curl Fix bug #52827 (cURL leaks handle and causes assertion error (CURLOPT_STDERR)). 2010-09-14 10:58:59 +00:00
date - Updated to version 2010.13 (2010m) 2010-09-27 13:57:42 +00:00
dba MFB53: Changed deprecated ini options on startup from E_WARNING to E_DEPRECATED (Fixes #52570) 2010-08-11 21:41:30 +00:00
dom Cast to char * here 2010-09-23 03:54:54 +00:00
enchant - Fixed bug #53070 (Calling enchant_broker_get_dict_path before set_path crashes php) 2010-10-16 17:52:01 +00:00
ereg Eliminate a TSRMLS_FETCH() call in case of an error in one of the ereg functions 2010-09-23 04:51:02 +00:00
exif MFB53: Changed deprecated ini options on startup from E_WARNING to E_DEPRECATED (Fixes #52570) 2010-08-11 21:41:30 +00:00
fileinfo Added caches to eliminate repeatable run-time bindings of functions, classes, constants, methods and properties 2010-05-24 14:11:39 +00:00
filter Fix bug #52929 (Segfault in filter_var with FILTER_VALIDATE_EMAIL with large 2010-09-27 07:08:04 +00:00
ftp Removed safe_mode 2010-04-26 23:53:30 +00:00
gd - don't build if no libvpx available 2010-10-06 09:02:08 +00:00
gettext revert change #298288: Remove old dsp/dsw/makefile files 2010-04-28 14:41:51 +00:00
gmp Fix bug #52906 gmp_mod returns negative result when non-negative is expected 2010-10-01 00:12:23 +00:00
hash Fixed signedness compiler warning 2010-09-23 03:33:36 +00:00
iconv Fixed bug #52941 (The 'iconv_mime_decode_headers' function is skipping 2010-09-30 11:04:21 +00:00
imap revert change #298288: Remove old dsp/dsw/makefile files 2010-04-28 14:41:51 +00:00
interbase - use TSRMLS_*C instead of TSRMLS_FETCH in zend_list_insert 2010-09-16 09:13:19 +00:00
intl - Added support for ICU Transformations (Transliterator). 2010-10-06 18:53:27 +00:00
json Implement FR #44331 (Formatting option for json_encode). Bikeshedding about the 2010-09-16 16:21:15 +00:00
ldap - Fixed wrong type 2010-09-08 01:46:23 +00:00
libxml - use TSRMLS_*C instead of TSRMLS_FETCH in zend_list_insert 2010-09-16 09:13:19 +00:00
mbstring - Moved ucgendat.c to a separate directory and included the 2010-10-05 02:34:35 +00:00
mcrypt - use new function to get random bytes 2010-06-08 18:27:23 +00:00
mssql - use TSRMLS_*C instead of TSRMLS_FETCH in zend_list_insert 2010-09-16 09:13:19 +00:00
mysql Trying to fix compiler warnings (on Windows). 2010-10-04 13:36:23 +00:00
mysqli Fix for Bug #52686 mysql_stmt_attr_[gs]et arg. points to incorrect type 2010-10-06 11:11:02 +00:00
mysqlnd profiling in trace mode 2010-10-22 15:46:26 +00:00
oci8 - use TSRMLS_*C instead of TSRMLS_FETCH in zend_list_insert 2010-09-16 09:13:19 +00:00
odbc - use TSRMLS_*C instead of TSRMLS_FETCH in zend_list_insert 2010-09-16 09:13:19 +00:00
openssl Fix vim marker folds. 2010-10-13 09:23:39 +00:00
pcntl sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php 2010-01-03 09:23:27 +00:00
pcre - Fixed bug #52971 (PCRE-Meta-Characters not working with utf-8) 2010-10-03 16:01:38 +00:00
pdo Skip if PDO_SQLITE is not available 2010-09-17 17:11:21 +00:00
pdo_dblib Remove non C90 quotes 2010-09-29 00:55:43 +00:00
pdo_firebird Fixed bug #50728 (All PDOExceptions hardcode 'code' property to 0) 2010-01-12 12:46:54 +00:00
pdo_mysql profiling in trace mode 2010-10-22 15:46:26 +00:00
pdo_oci Allow newer oracle versions 2010-02-04 01:12:14 +00:00
pdo_odbc Remove main/php3_compat.h, for that a few references to function_entry have 2010-03-30 23:03:02 +00:00
pdo_pgsql Added inTransaction() method to PDO, with specialized support for Postgres 2010-06-10 12:11:19 +00:00
pdo_sqlite - New test 2010-07-29 23:46:49 +00:00
pgsql - use TSRMLS_*C instead of TSRMLS_FETCH in zend_list_insert 2010-09-16 09:13:19 +00:00
phar Fix failing phar tests. 2010-09-24 08:53:00 +00:00
posix MFB53: Changed deprecated ini options on startup from E_WARNING to E_DEPRECATED (Fixes #52570) 2010-08-11 21:41:30 +00:00
pspell - use TSRMLS_*C instead of TSRMLS_FETCH in zend_list_insert 2010-09-16 09:13:19 +00:00
readline sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php 2010-01-03 09:23:27 +00:00
recode sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php 2010-01-03 09:23:27 +00:00
reflection - Improved memory usage 2010-09-15 07:38:52 +00:00
session Fixed a compiler warning 2010-08-27 19:43:08 +00:00
shmop - use TSRMLS_*C instead of TSRMLS_FETCH in zend_list_insert 2010-09-16 09:13:19 +00:00
simplexml - revert fix for #52655, rev. 302614 2010-08-23 17:01:44 +00:00
skeleton revert change #298288: Remove old dsp/dsw/makefile files 2010-04-28 14:41:51 +00:00
snmp revert change #298288: Remove old dsp/dsw/makefile files 2010-04-28 14:41:51 +00:00
soap Fixed bug #44248 (RFC2616 transgression while HTTPS request through proxy with SoapClient object). 2010-10-05 11:43:59 +00:00
sockets revert change #298288: Remove old dsp/dsw/makefile files 2010-04-28 14:41:51 +00:00
spl - Fixed bug #53144 (SplObjectStorage::removeAll()) 2010-10-24 14:03:07 +00:00
sqlite - Completed the fix for bug #52010 2010-06-20 14:12:06 +00:00
sqlite3 Upgraded bundled sqlite to version 3.7.3 2010-10-20 19:27:34 +00:00
standard - Completed rewrite of html.c. Except for determine_charset, almost nothing 2010-10-24 15:01:02 +00:00
sybase_ct - Add ".so" suffix to checks on libsybct[64] bundles 2010-08-31 12:27:29 +00:00
sysvmsg - WS 2010-09-16 19:15:26 +00:00
sysvsem sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php 2010-01-03 09:23:27 +00:00
sysvshm Fixed a possible resource destruction issues in shm_put_var() 2010-05-13 08:34:06 +00:00
tidy * implement new output API, fixing some bugs and implementing some feature 2010-05-31 10:29:43 +00:00
tokenizer - token_get_all now returns false on error, not "", returns array on success 2010-05-30 09:34:02 +00:00
wddx - Fixed bug #52468 (wddx_deserialize corrupts integer field value when left empty) 2010-08-01 17:34:09 +00:00
xml revert change #298288: Remove old dsp/dsw/makefile files 2010-04-28 14:41:51 +00:00
xmlreader Added caches to eliminate repeatable run-time bindings of functions, classes, constants, methods and properties 2010-05-24 14:11:39 +00:00
xmlrpc revert change #298288: Remove old dsp/dsw/makefile files 2010-04-28 14:41:51 +00:00
xmlwriter Added caches to eliminate repeatable run-time bindings of functions, classes, constants, methods and properties 2010-05-24 14:11:39 +00:00
xsl Added caches to eliminate repeatable run-time bindings of functions, classes, constants, methods and properties 2010-05-24 14:11:39 +00:00
zip - fix Fixed NULL pointer dereference in ZipArchive::getArchiveComment, (CVE-2010-3709), report&patch from Maksymilian Arciemowicz 2010-10-19 09:56:11 +00:00
zlib - Fixed bug #52944 (Invalid write on second and subsequent reads with an inflate filter fed invalid data). 2010-09-29 18:58:58 +00:00
ext_skel - ext_skelshould create a .svnignore not .cvsignore these days 2010-08-06 22:19:47 +00:00
ext_skel_win32.php revert change #298288: Remove old dsp/dsw/makefile files 2010-04-28 14:41:51 +00:00