Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/updraftp.../vendor/symfony/polyfill...
File: bootstrap.php
<?php
[0] Fix | Delete
[1] Fix | Delete
/*
[2] Fix | Delete
* This file is part of the Symfony package.
[3] Fix | Delete
*
[4] Fix | Delete
* (c) Fabien Potencier <fabien@symfony.com>
[5] Fix | Delete
*
[6] Fix | Delete
* For the full copyright and license information, please view the LICENSE
[7] Fix | Delete
* file that was distributed with this source code.
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
use Symfony\Polyfill\Mbstring as p;
[11] Fix | Delete
[12] Fix | Delete
if (!function_exists('mb_convert_encoding')) {
[13] Fix | Delete
function mb_convert_encoding($string, $to_encoding, $from_encoding = null) { return p\Mbstring::mb_convert_encoding($string, $to_encoding, $from_encoding); }
[14] Fix | Delete
}
[15] Fix | Delete
if (!function_exists('mb_decode_mimeheader')) {
[16] Fix | Delete
function mb_decode_mimeheader($string) { return p\Mbstring::mb_decode_mimeheader($string); }
[17] Fix | Delete
}
[18] Fix | Delete
if (!function_exists('mb_encode_mimeheader')) {
[19] Fix | Delete
function mb_encode_mimeheader($string, $charset = null, $transfer_encoding = null, $newline = null, $indent = null) { return p\Mbstring::mb_encode_mimeheader($string, $charset, $transfer_encoding, $newline, $indent); }
[20] Fix | Delete
}
[21] Fix | Delete
if (!function_exists('mb_decode_numericentity')) {
[22] Fix | Delete
function mb_decode_numericentity($string, $map, $encoding = null) { return p\Mbstring::mb_decode_numericentity($string, $map, $encoding); }
[23] Fix | Delete
}
[24] Fix | Delete
if (!function_exists('mb_encode_numericentity')) {
[25] Fix | Delete
function mb_encode_numericentity($string, $map, $encoding = null, $hex = false) { return p\Mbstring::mb_encode_numericentity($string, $map, $encoding, $hex); }
[26] Fix | Delete
}
[27] Fix | Delete
if (!function_exists('mb_convert_case')) {
[28] Fix | Delete
function mb_convert_case($string, $mode, $encoding = null) { return p\Mbstring::mb_convert_case($string, $mode, $encoding); }
[29] Fix | Delete
}
[30] Fix | Delete
if (!function_exists('mb_internal_encoding')) {
[31] Fix | Delete
function mb_internal_encoding($encoding = null) { return p\Mbstring::mb_internal_encoding($encoding); }
[32] Fix | Delete
}
[33] Fix | Delete
if (!function_exists('mb_language')) {
[34] Fix | Delete
function mb_language($language = null) { return p\Mbstring::mb_language($language); }
[35] Fix | Delete
}
[36] Fix | Delete
if (!function_exists('mb_list_encodings')) {
[37] Fix | Delete
function mb_list_encodings() { return p\Mbstring::mb_list_encodings(); }
[38] Fix | Delete
}
[39] Fix | Delete
if (!function_exists('mb_encoding_aliases')) {
[40] Fix | Delete
function mb_encoding_aliases($encoding) { return p\Mbstring::mb_encoding_aliases($encoding); }
[41] Fix | Delete
}
[42] Fix | Delete
if (!function_exists('mb_check_encoding')) {
[43] Fix | Delete
function mb_check_encoding($value = null, $encoding = null) { return p\Mbstring::mb_check_encoding($value, $encoding); }
[44] Fix | Delete
}
[45] Fix | Delete
if (!function_exists('mb_detect_encoding')) {
[46] Fix | Delete
function mb_detect_encoding($string, $encodings = null, $strict = false) { return p\Mbstring::mb_detect_encoding($string, $encodings, $strict); }
[47] Fix | Delete
}
[48] Fix | Delete
if (!function_exists('mb_detect_order')) {
[49] Fix | Delete
function mb_detect_order($encoding = null) { return p\Mbstring::mb_detect_order($encoding); }
[50] Fix | Delete
}
[51] Fix | Delete
if (!function_exists('mb_parse_str')) {
[52] Fix | Delete
function mb_parse_str($string, &$result = array()) { parse_str($string, $result); }
[53] Fix | Delete
}
[54] Fix | Delete
if (!function_exists('mb_strlen')) {
[55] Fix | Delete
function mb_strlen($string, $encoding = null) { return p\Mbstring::mb_strlen($string, $encoding); }
[56] Fix | Delete
}
[57] Fix | Delete
if (!function_exists('mb_strpos')) {
[58] Fix | Delete
function mb_strpos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_strpos($haystack, $needle, $offset, $encoding); }
[59] Fix | Delete
}
[60] Fix | Delete
if (!function_exists('mb_strtolower')) {
[61] Fix | Delete
function mb_strtolower($string, $encoding = null) { return p\Mbstring::mb_strtolower($string, $encoding); }
[62] Fix | Delete
}
[63] Fix | Delete
if (!function_exists('mb_strtoupper')) {
[64] Fix | Delete
function mb_strtoupper($string, $encoding = null) { return p\Mbstring::mb_strtoupper($string, $encoding); }
[65] Fix | Delete
}
[66] Fix | Delete
if (!function_exists('mb_substitute_character')) {
[67] Fix | Delete
function mb_substitute_character($substitute_character = null) { return p\Mbstring::mb_substitute_character($substitute_character); }
[68] Fix | Delete
}
[69] Fix | Delete
if (!function_exists('mb_substr')) {
[70] Fix | Delete
function mb_substr($string, $start, $length = 2147483647, $encoding = null) { return p\Mbstring::mb_substr($string, $start, $length, $encoding); }
[71] Fix | Delete
}
[72] Fix | Delete
if (!function_exists('mb_stripos')) {
[73] Fix | Delete
function mb_stripos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_stripos($haystack, $needle, $offset, $encoding); }
[74] Fix | Delete
}
[75] Fix | Delete
if (!function_exists('mb_stristr')) {
[76] Fix | Delete
function mb_stristr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_stristr($haystack, $needle, $before_needle, $encoding); }
[77] Fix | Delete
}
[78] Fix | Delete
if (!function_exists('mb_strrchr')) {
[79] Fix | Delete
function mb_strrchr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_strrchr($haystack, $needle, $before_needle, $encoding); }
[80] Fix | Delete
}
[81] Fix | Delete
if (!function_exists('mb_strrichr')) {
[82] Fix | Delete
function mb_strrichr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_strrichr($haystack, $needle, $before_needle, $encoding); }
[83] Fix | Delete
}
[84] Fix | Delete
if (!function_exists('mb_strripos')) {
[85] Fix | Delete
function mb_strripos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_strripos($haystack, $needle, $offset, $encoding); }
[86] Fix | Delete
}
[87] Fix | Delete
if (!function_exists('mb_strrpos')) {
[88] Fix | Delete
function mb_strrpos($haystack, $needle, $offset = 0, $encoding = null) { return p\Mbstring::mb_strrpos($haystack, $needle, $offset, $encoding); }
[89] Fix | Delete
}
[90] Fix | Delete
if (!function_exists('mb_strstr')) {
[91] Fix | Delete
function mb_strstr($haystack, $needle, $before_needle = false, $encoding = null) { return p\Mbstring::mb_strstr($haystack, $needle, $before_needle, $encoding); }
[92] Fix | Delete
}
[93] Fix | Delete
if (!function_exists('mb_get_info')) {
[94] Fix | Delete
function mb_get_info($type = 'all') { return p\Mbstring::mb_get_info($type); }
[95] Fix | Delete
}
[96] Fix | Delete
if (!function_exists('mb_http_output')) {
[97] Fix | Delete
function mb_http_output($encoding = null) { return p\Mbstring::mb_http_output($encoding); }
[98] Fix | Delete
}
[99] Fix | Delete
if (!function_exists('mb_strwidth')) {
[100] Fix | Delete
function mb_strwidth($string, $encoding = null) { return p\Mbstring::mb_strwidth($string, $encoding); }
[101] Fix | Delete
}
[102] Fix | Delete
if (!function_exists('mb_substr_count')) {
[103] Fix | Delete
function mb_substr_count($haystack, $needle, $encoding = null) { return p\Mbstring::mb_substr_count($haystack, $needle, $encoding); }
[104] Fix | Delete
}
[105] Fix | Delete
if (!function_exists('mb_output_handler')) {
[106] Fix | Delete
function mb_output_handler($string, $status) { return p\Mbstring::mb_output_handler($string, $status); }
[107] Fix | Delete
}
[108] Fix | Delete
if (!function_exists('mb_http_input')) {
[109] Fix | Delete
function mb_http_input($type = '') { return p\Mbstring::mb_http_input($type); }
[110] Fix | Delete
}
[111] Fix | Delete
[112] Fix | Delete
if (PHP_VERSION_ID >= 80000) {
[113] Fix | Delete
require_once __DIR__.'/Resources/mb_convert_variables.php8';
[114] Fix | Delete
} elseif (!function_exists('mb_convert_variables')) {
[115] Fix | Delete
function mb_convert_variables($toEncoding, $fromEncoding, &$a = null, &$b = null, &$c = null, &$d = null, &$e = null, &$f = null) { return p\Mbstring::mb_convert_variables($toEncoding, $fromEncoding, $a, $b, $c, $d, $e, $f); }
[116] Fix | Delete
}
[117] Fix | Delete
[118] Fix | Delete
if (!function_exists('mb_ord')) {
[119] Fix | Delete
function mb_ord($string, $encoding = null) { return p\Mbstring::mb_ord($string, $encoding); }
[120] Fix | Delete
}
[121] Fix | Delete
if (!function_exists('mb_chr')) {
[122] Fix | Delete
function mb_chr($codepoint, $encoding = null) { return p\Mbstring::mb_chr($codepoint, $encoding); }
[123] Fix | Delete
}
[124] Fix | Delete
if (!function_exists('mb_scrub')) {
[125] Fix | Delete
function mb_scrub($string, $encoding = null) { $encoding = null === $encoding ? mb_internal_encoding() : $encoding; return mb_convert_encoding($string, $encoding, $encoding); }
[126] Fix | Delete
}
[127] Fix | Delete
if (!function_exists('mb_str_split')) {
[128] Fix | Delete
function mb_str_split($string, $length = 1, $encoding = null) { return p\Mbstring::mb_str_split($string, $length, $encoding); }
[129] Fix | Delete
}
[130] Fix | Delete
[131] Fix | Delete
if (extension_loaded('mbstring')) {
[132] Fix | Delete
return;
[133] Fix | Delete
}
[134] Fix | Delete
[135] Fix | Delete
if (!defined('MB_CASE_UPPER')) {
[136] Fix | Delete
define('MB_CASE_UPPER', 0);
[137] Fix | Delete
}
[138] Fix | Delete
if (!defined('MB_CASE_LOWER')) {
[139] Fix | Delete
define('MB_CASE_LOWER', 1);
[140] Fix | Delete
}
[141] Fix | Delete
if (!defined('MB_CASE_TITLE')) {
[142] Fix | Delete
define('MB_CASE_TITLE', 2);
[143] Fix | Delete
}
[144] Fix | Delete
[145] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function