mirror of
https://github.com/php/php-src.git
synced 2024-11-23 09:54:15 +08:00
Merge branch 'PHP-7.4'
This commit is contained in:
commit
f9e918b17d
@ -3,9 +3,9 @@ iconv_mime_encode() sanity cheeck.
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('iconv') or die('skip iconv extension is not available'); ?>
|
||||
--INI--
|
||||
iconv.input_encoding = ISO-8859-1
|
||||
iconv.internal_encoding = ISO-8859-1
|
||||
iconv.output_encoding = ISO-8859-1
|
||||
input_encoding = ISO-8859-1
|
||||
internal_encoding = ISO-8859-1
|
||||
output_encoding = ISO-8859-1
|
||||
--FILE--
|
||||
<?php
|
||||
var_dump(iconv_mime_encode('', ''));
|
||||
|
@ -7,7 +7,7 @@ function_exists('iconv_get_encoding') or die("skip iconv_get_encoding() is not a
|
||||
?>
|
||||
--INI--
|
||||
error_reporting=E_ALL & ~E_DEPRECATED
|
||||
iconv.input_encoding=ISO-8859-1
|
||||
input_encoding=ISO-8859-1
|
||||
iconv.internal_encoding=ISO-8859-1
|
||||
iconv.output_encoding=ISO-8859-1
|
||||
--FILE--
|
||||
|
@ -6,9 +6,9 @@ extension_loaded('iconv') or die('skip');
|
||||
function_exists('iconv_substr') or die("skip iconv_substr() is not available in this build");
|
||||
?>
|
||||
--INI--
|
||||
iconv.input_encoding=ISO-8859-1
|
||||
iconv.internal_encoding=ISO-8859-1
|
||||
iconv.output_encoding=ISO-8859-1
|
||||
input_encoding=ISO-8859-1
|
||||
internal_encoding=ISO-8859-1
|
||||
output_encoding=ISO-8859-1
|
||||
--FILE--
|
||||
<?php
|
||||
/* Prototype : string iconv_substr(string str, int offset, [int length, string charset])
|
||||
|
@ -2,8 +2,8 @@
|
||||
Bug #45239 (encoding detector hangs with mbstring.strict_detection enabled)
|
||||
--INI--
|
||||
mbstring.strict_detection=1
|
||||
mbstring.http_input=UTF-8
|
||||
mbstring.internal_encoding=UTF-8
|
||||
input_encoding=UTF-8
|
||||
internal_encoding=UTF-8
|
||||
--SKIPIF--
|
||||
<?php
|
||||
extension_loaded('mbstring') or die('skip');
|
||||
|
@ -2,8 +2,6 @@
|
||||
Bug #45923 (mb_st[r]ripos() offset not handled correctly)
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
|
||||
--INI--
|
||||
mbstring.internal_encoding=UTF-8
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
|
@ -11,9 +11,8 @@ output_handler=mb_output_handler
|
||||
zlib.output_compression=
|
||||
arg_separator.input=x
|
||||
error_reporting=0
|
||||
mbstring.http_input=HTML-ENTITIES
|
||||
mbstring.internal_encoding=UTF-8
|
||||
mbstring.http_output=HTML-ENTITIES
|
||||
input_encoding=HTML-ENTITIES
|
||||
output_encoding=HTML-ENTITIES
|
||||
mbstring.encoding_translation=1
|
||||
filter.default=unsafe_raw
|
||||
--FILE--
|
||||
|
@ -2,8 +2,6 @@
|
||||
mb_output_handler() and mbstring.http_output_conv_mimetypes (1)
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
|
||||
--INI--
|
||||
mbstring.internal_encoding=UTF-8
|
||||
--FILE--
|
||||
<?php
|
||||
mb_http_output("EUC-JP");
|
||||
|
@ -2,8 +2,6 @@
|
||||
mb_output_handler() and mbstring.http_output_conv_mimetypes (2)
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
|
||||
--INI--
|
||||
mbstring.internal_encoding=UTF-8
|
||||
--FILE--
|
||||
<?php
|
||||
mb_http_output("EUC-JP");
|
||||
|
@ -2,8 +2,6 @@
|
||||
mb_output_handler() and mbstring.http_output_conv_mimetypes (3)
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
|
||||
--INI--
|
||||
mbstring.internal_encoding=UTF-8
|
||||
--FILE--
|
||||
<?php
|
||||
mb_http_output("EUC-JP");
|
||||
|
@ -2,8 +2,6 @@
|
||||
mb_output_handler() and mbstring.http_output_conv_mimetypes (4)
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
|
||||
--INI--
|
||||
mbstring.internal_encoding=UTF-8
|
||||
--FILE--
|
||||
<?php
|
||||
mb_http_output("EUC-JP");
|
||||
|
@ -2,8 +2,6 @@
|
||||
mb_output_handler() and mbstring.http_output_conv_mimetypes (5)
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
|
||||
--INI--
|
||||
mbstring.internal_encoding=UTF-8
|
||||
--FILE--
|
||||
<?php
|
||||
mb_http_output("EUC-JP");
|
||||
|
@ -2,8 +2,6 @@
|
||||
mb_output_handler() and mbstring.http_output_conv_mimetypes (6)
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
|
||||
--INI--
|
||||
mbstring.internal_encoding=UTF-8
|
||||
--FILE--
|
||||
<?php
|
||||
mb_http_output("EUC-JP");
|
||||
|
@ -3,7 +3,6 @@ mb_output_handler() and mbstring.http_output_conv_mimetypes (7)
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
|
||||
--INI--
|
||||
mbstring.internal_encoding=UTF-8
|
||||
mbstring.http_output_conv_mimetypes=html
|
||||
--FILE--
|
||||
<?php
|
||||
|
@ -3,7 +3,6 @@ mb_output_handler() and mbstring.http_output_conv_mimetypes (8)
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
|
||||
--INI--
|
||||
mbstring.internal_encoding=UTF-8
|
||||
mbstring.http_output_conv_mimetypes=html
|
||||
--FILE--
|
||||
<?php
|
||||
|
@ -3,7 +3,6 @@ mb_output_handler() and mbstring.http_output_conv_mimetypes (9)
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
|
||||
--INI--
|
||||
mbstring.internal_encoding=UTF-8
|
||||
mbstring.http_output_conv_mimetypes=html
|
||||
--FILE--
|
||||
<?php
|
||||
|
@ -3,7 +3,6 @@ mb_output_handler() and mbstring.http_output_conv_mimetypes (10)
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
|
||||
--INI--
|
||||
mbstring.internal_encoding=UTF-8
|
||||
mbstring.http_output_conv_mimetypes=html
|
||||
--FILE--
|
||||
<?php
|
||||
|
@ -2,8 +2,6 @@
|
||||
mb_output_handler() and mbstring.http_output_conv_mimetypes (11)
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
|
||||
--INI--
|
||||
mbstring.internal_encoding=UTF-8
|
||||
--FILE--
|
||||
<?php
|
||||
mb_http_output("EUC-JP");
|
||||
|
@ -2,8 +2,6 @@
|
||||
mb_output_handler() and mbstring.http_output_conv_mimetypes (12)
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
|
||||
--INI--
|
||||
mbstring.internal_encoding=UTF-8
|
||||
--FILE--
|
||||
<?php
|
||||
mb_http_output("EUC-JP");
|
||||
|
@ -4,8 +4,8 @@ mb_output_handler() (Shift_JIS)
|
||||
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
|
||||
--INI--
|
||||
output_handler=mb_output_handler
|
||||
mbstring.internal_encoding=Shift_JIS
|
||||
mbstring.http_output=EUC-JP
|
||||
internal_encoding=Shift_JIS
|
||||
output_encoding=EUC-JP
|
||||
--FILE--
|
||||
<?php
|
||||
// Shift_JIS
|
||||
|
@ -2,8 +2,6 @@
|
||||
mb_strstr()
|
||||
--SKIPIF--
|
||||
<?php extension_loaded('mbstring') or die('skip mbstring not available'); ?>
|
||||
--INI--
|
||||
mbstring.internal_encoding=UTF-8
|
||||
--FILE--
|
||||
<?php
|
||||
function EUC_JP($utf8str) {
|
||||
|
@ -6,7 +6,7 @@ extension_loaded('mbstring') or die('skip');
|
||||
function_exists('mb_substr') or die("skip mb_substr() is not available in this build");
|
||||
?>
|
||||
--INI--
|
||||
mbstring.internal_encoding=ISO-8859-1
|
||||
internal_encoding=ISO-8859-1
|
||||
--FILE--
|
||||
<?php
|
||||
/* Prototype : string mb_substr(string $str, int $start [, int $length [, string $encoding]])
|
||||
|
@ -5,7 +5,7 @@ zend multibyte (1)
|
||||
--INI--
|
||||
zend.multibyte=On
|
||||
zend.script_encoding=Shift_JIS
|
||||
mbstring.internal_encoding=Shift_JIS
|
||||
internal_encoding=Shift_JIS
|
||||
--FILE--
|
||||
<?php
|
||||
function —\Ž\”\($ˆø<CB86>”)
|
||||
|
@ -6,7 +6,7 @@ zend multibyte (2)
|
||||
error_reporting=E_ALL & ~E_DEPRECATED
|
||||
zend.multibyte=On
|
||||
zend.script_encoding=UTF-8
|
||||
mbstring.internal_encoding=CP932
|
||||
internal_encoding=CP932
|
||||
--FILE--
|
||||
<?php
|
||||
var_dump(bin2hex("テスト"));
|
||||
|
@ -5,7 +5,7 @@ zend multibyte (3)
|
||||
--INI--
|
||||
zend.multibyte=On
|
||||
zend.script_encoding=UTF-8
|
||||
mbstring.internal_encoding=EUC-JP
|
||||
internal_encoding=EUC-JP
|
||||
--FILE--
|
||||
<?php
|
||||
var_dump(bin2hex("テスト"));
|
||||
|
@ -5,7 +5,7 @@ zend multibyte (4)
|
||||
--INI--
|
||||
zend.multibyte=On
|
||||
zend.script_encoding=CP932
|
||||
mbstring.internal_encoding=UTF-8
|
||||
internal_encoding=UTF-8
|
||||
--FILE--
|
||||
<?php
|
||||
var_dump(bin2hex("テスト"));
|
||||
|
@ -5,7 +5,7 @@ zend multibyte (5)
|
||||
--INI--
|
||||
zend.multibyte=On
|
||||
zend.script_encoding=EUC-JP
|
||||
mbstring.internal_encoding=UTF-8
|
||||
internal_encoding=UTF-8
|
||||
--FILE--
|
||||
<?php
|
||||
// forcefully interpret an UTF-8 encoded string as EUC-JP and then convert it
|
||||
|
@ -5,7 +5,7 @@ zend multibyte (6)
|
||||
--INI--
|
||||
zend.multibyte=On
|
||||
zend.script_encoding=EUC-JP
|
||||
mbstring.internal_encoding=CP932
|
||||
internal_encoding=CP932
|
||||
--FILE--
|
||||
<?php
|
||||
declare(encoding="UTF-8");
|
||||
|
@ -3,10 +3,9 @@ zend multibyte (7)
|
||||
--SKIPIF--
|
||||
<?php require 'skipif.inc'; ?>
|
||||
--INI--
|
||||
error_reporting=E_ALL & ~E_DEPRECATED
|
||||
zend.multibyte=On
|
||||
zend.script_encoding=ISO-8859-1
|
||||
mbstring.internal_encoding=EUC-JP
|
||||
internal_encoding=EUC-JP
|
||||
--FILE--
|
||||
<?php
|
||||
declare(encoding="UTF-8");
|
||||
|
@ -5,7 +5,7 @@ zend multibyte (8)
|
||||
--INI--
|
||||
zend.multibyte=On
|
||||
zend.script_encoding=ISO-8859-1
|
||||
mbstring.internal_encoding=UTF-8
|
||||
internal_encoding=UTF-8
|
||||
--FILE--
|
||||
<?php
|
||||
declare(encoding="CP932");
|
||||
|
@ -3,10 +3,9 @@ zend multibyte (9)
|
||||
--SKIPIF--
|
||||
<?php require 'skipif.inc'; ?>
|
||||
--INI--
|
||||
error_reporting=E_ALL & ~E_DEPRECATED
|
||||
zend.multibyte=On
|
||||
zend.script_encoding=cp1251
|
||||
mbstring.internal_encoding=UTF-8
|
||||
internal_encoding=UTF-8
|
||||
--FILE--
|
||||
<?php
|
||||
declare(encoding="EUC-JP");
|
||||
|
@ -5,7 +5,7 @@ zend multibyte (13)
|
||||
--INI--
|
||||
zend.multibyte=On
|
||||
zend.script_encoding=UTF-8
|
||||
mbstring.internal_encoding=ISO-8859-1
|
||||
internal_encoding=ISO-8859-1
|
||||
--FILE--
|
||||
<?php
|
||||
var_dump(substr(file_get_contents(__FILE__), __COMPILER_HALT_OFFSET__));
|
||||
|
@ -5,7 +5,7 @@ zend multibyte (14)
|
||||
--INI--
|
||||
zend.multibyte=On
|
||||
zend.script_encoding=UTF-8
|
||||
mbstring.internal_encoding=UTF-8
|
||||
internal_encoding=UTF-8
|
||||
--FILE--
|
||||
<?php
|
||||
var_dump(substr(file_get_contents(__FILE__), __COMPILER_HALT_OFFSET__));
|
||||
|
@ -2,7 +2,7 @@
|
||||
htmlentities() test 1 (cp1252)
|
||||
--INI--
|
||||
output_handler=
|
||||
mbstring.internal_encoding=pass
|
||||
internal_encoding=pass
|
||||
--FILE--
|
||||
<?php
|
||||
var_dump(htmlentities("\x82\x86\x99\x9f", ENT_QUOTES, 'cp1252'));
|
||||
|
@ -10,7 +10,7 @@ if (!$result) {
|
||||
--INI--
|
||||
output_handler=
|
||||
default_charset=
|
||||
mbstring.internal_encoding=pass
|
||||
internal_encoding=pass
|
||||
--FILE--
|
||||
<?php
|
||||
setlocale(LC_CTYPE, "fr_FR.ISO-8859-15", "fr_FR.ISO8859-15", 'fr_FR@euro');
|
||||
|
@ -10,7 +10,7 @@ if (!$result || preg_match('/ISO/i', setlocale(LC_CTYPE, 0)) == 0) {
|
||||
--INI--
|
||||
output_handler=
|
||||
default_charset=
|
||||
mbstring.internal_encoding=pass
|
||||
internal_encoding=pass
|
||||
--FILE--
|
||||
<?php
|
||||
setlocale( LC_CTYPE, "de_DE.ISO-8859-1", "de_DE.ISO8859-1");
|
||||
|
@ -10,7 +10,7 @@ if (!$result || preg_match('/EUC[^a-zA-Z]*JP/i', setlocale(LC_CTYPE, 0)) == 0) {
|
||||
--INI--
|
||||
output_handler=
|
||||
default_charset=
|
||||
mbstring.internal_encoding=pass
|
||||
internal_encoding=pass
|
||||
--FILE--
|
||||
<?php
|
||||
setlocale( LC_CTYPE, "ja_JP.EUC-JP", "ja_JP.eucJP" );
|
||||
|
@ -2,7 +2,7 @@
|
||||
htmlentities() test 5 (mbstring / cp1252)
|
||||
--INI--
|
||||
output_handler=
|
||||
mbstring.internal_encoding=cp1252
|
||||
internal_encoding=cp1252
|
||||
--SKIPIF--
|
||||
<?php
|
||||
extension_loaded("mbstring") or die("skip mbstring not available\n");
|
||||
|
@ -2,7 +2,7 @@
|
||||
htmlentities() test 6 (mbstring / ISO-8859-15)
|
||||
--INI--
|
||||
output_handler=
|
||||
mbstring.internal_encoding=ISO-8859-15
|
||||
internal_encoding=ISO-8859-15
|
||||
--SKIPIF--
|
||||
<?php
|
||||
extension_loaded("mbstring") or die("skip mbstring not available\n");
|
||||
|
@ -2,7 +2,7 @@
|
||||
htmlentities() test 7 (mbstring / ISO-8859-1)
|
||||
--INI--
|
||||
output_handler=
|
||||
mbstring.internal_encoding=ISO-8859-1
|
||||
internal_encoding=ISO-8859-1
|
||||
--SKIPIF--
|
||||
<?php
|
||||
extension_loaded("mbstring") or die("skip mbstring not available\n");
|
||||
|
@ -3,7 +3,7 @@ htmlentities() test 8 (mbstring / EUC-JP)
|
||||
--INI--
|
||||
output_handler=
|
||||
error_reporting=~E_STRICT
|
||||
mbstring.internal_encoding=EUC-JP
|
||||
internal_encoding=EUC-JP
|
||||
--SKIPIF--
|
||||
<?php
|
||||
extension_loaded("mbstring") or die("skip mbstring not available\n");
|
||||
|
@ -3,7 +3,7 @@ htmlentities() test 9 (mbstring / Shift_JIS)
|
||||
--INI--
|
||||
output_handler=
|
||||
error_reporting=~E_STRICT
|
||||
mbstring.internal_encoding=Shift_JIS
|
||||
internal_encoding=Shift_JIS
|
||||
--SKIPIF--
|
||||
<?php
|
||||
extension_loaded("mbstring") or die("skip mbstring not available\n");
|
||||
|
@ -2,7 +2,7 @@
|
||||
htmlentities() test 10 (default_charset / cp1252)
|
||||
--INI--
|
||||
output_handler=
|
||||
mbstring.internal_encoding=pass
|
||||
internal_encoding=pass
|
||||
default_charset=cp1252
|
||||
--FILE--
|
||||
<?php
|
||||
|
@ -2,7 +2,7 @@
|
||||
htmlentities() test 11 (default_charset / ISO-8859-15)
|
||||
--INI--
|
||||
output_handler=
|
||||
mbstring.internal_encoding=pass
|
||||
internal_encoding=pass
|
||||
default_charset=ISO-8859-15
|
||||
--FILE--
|
||||
<?php
|
||||
|
@ -2,7 +2,7 @@
|
||||
htmlentities() test 12 (default_charset / ISO-8859-1)
|
||||
--INI--
|
||||
output_handler=
|
||||
mbstring.internal_encoding=pass
|
||||
internal_encoding=pass
|
||||
default_charset=ISO-8859-1
|
||||
--FILE--
|
||||
<?php
|
||||
|
@ -2,7 +2,7 @@
|
||||
htmlentities() test 13 (default_charset / EUC-JP)
|
||||
--INI--
|
||||
output_handler=
|
||||
mbstring.internal_encoding=pass
|
||||
internal_encoding=pass
|
||||
default_charset=EUC-JP
|
||||
filter.default=unsafe_raw
|
||||
--FILE--
|
||||
|
@ -2,7 +2,7 @@
|
||||
htmlentities() test 14 (default_charset / Shift_JIS)
|
||||
--INI--
|
||||
output_handler=
|
||||
mbstring.internal_encoding=pass
|
||||
internal_encoding=pass
|
||||
default_charset=Shift_JIS
|
||||
filter.default=unsafe_raw
|
||||
--FILE--
|
||||
|
@ -3,7 +3,7 @@ htmlentities() test 15 (setlocale / KOI8-R)
|
||||
--INI--
|
||||
output_handler=
|
||||
default_charset=
|
||||
mbstring.internal_encoding=pass
|
||||
internal_encoding=pass
|
||||
--SKIPIF--
|
||||
<?php
|
||||
$result = (bool)setlocale(LC_CTYPE, "ru_RU.koi8r", "ru_RU.KOI8-R");
|
||||
|
@ -2,7 +2,7 @@
|
||||
htmlentities() test 16 (mbstring / cp1251)
|
||||
--INI--
|
||||
output_handler=
|
||||
mbstring.internal_encoding=cp1251
|
||||
internal_encoding=cp1251
|
||||
--SKIPIF--
|
||||
<?php
|
||||
extension_loaded("mbstring") or die("skip mbstring not available\n");
|
||||
|
@ -9,8 +9,8 @@ if (!extension_loaded("mbstring")) {
|
||||
--INI--
|
||||
file_uploads=1
|
||||
mbstring.encoding_translation=1
|
||||
mbstring.http_input=Shift_JIS
|
||||
mbstring.internal_encoding=UTF-8
|
||||
input_encoding=Shift_JIS
|
||||
internal_encoding=UTF-8
|
||||
--POST_RAW--
|
||||
Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
|
||||
-----------------------------20896060251896012921717172737
|
||||
|
Loading…
Reference in New Issue
Block a user