diff options
author | Pierre Joye <pierre.php@gmail.com> | 2014-03-10 12:04:04 +0100 |
---|---|---|
committer | Pierre Joye <pierre.php@gmail.com> | 2014-03-10 12:04:04 +0100 |
commit | cedc718f73fc6ea2f3164f31c6e8bd094ba0f917 (patch) | |
tree | 9ecd171fc07cb9c751684a746186da31575f9559 | |
parent | e590aceb5ad05e59896fecfeb645f5a70919f417 (diff) | |
parent | e2fc6b52f04ce2bf2295011d8b768cc0d8097ed7 (diff) | |
download | php-git-cedc718f73fc6ea2f3164f31c6e8bd094ba0f917.tar.gz |
Merge branch 'PHP-5.4' of git.php.net:php-src into PHP-5.4
# By Dmitry Panin (1) and Remi Collet (1)
# Via Nikita Popov
* 'PHP-5.4' of git.php.net:php-src:
Fix HTML entity table generation
Set default Digest Message to use SHA1 instead of MD5 in openssl tests as MD5 signature are now rejected by newer openssl Version.
-rw-r--r-- | ext/openssl/tests/openssl.cnf | 1 | ||||
-rw-r--r-- | ext/standard/html_tables.h | 4 | ||||
-rw-r--r-- | ext/standard/html_tables/html_table_gen.php | 1 | ||||
-rw-r--r-- | ext/standard/tests/strings/get_html_translation_table_basic5.phpt | 9 | ||||
-rw-r--r-- | ext/standard/tests/strings/htmlentities_html5.phpt | 3 |
5 files changed, 11 insertions, 7 deletions
diff --git a/ext/openssl/tests/openssl.cnf b/ext/openssl/tests/openssl.cnf index 4ed40fdc8a..6ba37cb953 100644 --- a/ext/openssl/tests/openssl.cnf +++ b/ext/openssl/tests/openssl.cnf @@ -3,6 +3,7 @@ default_bits = 1024 default_keyfile = privkey.pem distinguished_name = req_distinguished_name attributes = req_attributes +default_md = sha1 x509_extensions = v3_ca # The extensions to add to the self signed cert string_mask = MASK:4294967295 diff --git a/ext/standard/html_tables.h b/ext/standard/html_tables.h index 05aea46df1..83c78b5d78 100644 --- a/ext/standard/html_tables.h +++ b/ext/standard/html_tables.h @@ -1395,8 +1395,8 @@ static const entity_multicodepoint_row multi_cp_html5_02ACC[] = { { {0x0FE00, "varsupsetneqq", 13} }, }; static const entity_multicodepoint_row multi_cp_html5_02AFD[] = { - { {01, NULL , 0} }, - { {0x0FE00, "varsupsetneqq", 13} }, + { {01, "parsl", 5} }, + { {0x020E5, "nparsl", 6} }, }; /* End of double code point tables }}} */ diff --git a/ext/standard/html_tables/html_table_gen.php b/ext/standard/html_tables/html_table_gen.php index 7e7314fa35..defddbd0e3 100644 --- a/ext/standard/html_tables/html_table_gen.php +++ b/ext/standard/html_tables/html_table_gen.php @@ -461,6 +461,7 @@ if (empty($multicp_rows)) ksort($multicp_rows); foreach ($multicp_rows as &$v) { ksort($v); } +unset($v); echo "/* {{{ Start of double code point tables for $name */", "\n\n"; diff --git a/ext/standard/tests/strings/get_html_translation_table_basic5.phpt b/ext/standard/tests/strings/get_html_translation_table_basic5.phpt index 600ad43635..c7a9622fb7 100644 --- a/ext/standard/tests/strings/get_html_translation_table_basic5.phpt +++ b/ext/standard/tests/strings/get_html_translation_table_basic5.phpt @@ -46,7 +46,7 @@ echo "Done\n"; --EXPECT-- *** Testing get_html_translation_table() : basic functionality/HTML 5 *** -- with table = HTML_ENTITIES, ENT_COMPAT -- -int(1509) +int(1510) Array ( [Æ] => Æ @@ -1108,6 +1108,7 @@ Array [⋾] => ⋾ [⋽] => ⋽ [∦] => ∦ + [⫽⃥] => &nparsl [∂̸] => &npart [⨔] => ⨔ [⊀] => ⊀ @@ -1196,6 +1197,7 @@ Array [⌽] => ⌽ [¶] => ¶ [⫳] => ⫳ + [⫽] => ⫽ [∂] => ∂ [п] => п [%] => % @@ -1500,7 +1502,6 @@ Array [⦜] => ⦜ [ϰ] => ϰ [⫌︀] => &varsupsetneqq - [⫽︀] => &varsupsetneqq [⊲] => ⊲ [в] => в [⊢] => ⊢ @@ -1561,9 +1562,9 @@ Array [] => ‌ ) -- with table = HTML_ENTITIES, ENT_QUOTES -- -int(1510) +int(1511) -- with table = HTML_ENTITIES, ENT_NOQUOTES -- -int(1508) +int(1509) -- with table = HTML_SPECIALCHARS, ENT_COMPAT -- int(4) Array diff --git a/ext/standard/tests/strings/htmlentities_html5.phpt b/ext/standard/tests/strings/htmlentities_html5.phpt index 1f3409723e..e7c216a292 100644 --- a/ext/standard/tests/strings/htmlentities_html5.phpt +++ b/ext/standard/tests/strings/htmlentities_html5.phpt @@ -1418,6 +1418,7 @@ foreach ($mpcent as $i) { ⫱ U+02AF1 ⫲ U+02AF2 ⫳ U+02AF3 +⫽ U+02AFD ff U+0FB00 fi U+0FB01 fl U+0FB02 @@ -1620,4 +1621,4 @@ foreach ($mpcent as $i) { ⫆̸ U+02AC6 U+00338 ⫋︀ U+02ACB U+0FE00 ⫌︀ U+02ACC U+0FE00 -⫌︀ U+02AFD U+0FE00 +⫽︀ U+02AFD U+0FE00
\ No newline at end of file |