Last active
March 24, 2026 11:28
-
-
Save jrfnl/bd0f66f1c185930427db4f093babf214 to your computer and use it in GitHub Desktop.
Impact analysis proposed PHP 8.6 Mb Regex deprecation on Packagist top 4000
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0"?> | |
| <ruleset name="Impact check for https://wiki.php.net/rfc/eol-oniguruma"> | |
| <!-- This ruleset should only be used in conjunction with PHPCompatibility at commit | |
| https://github.com/PHPCompatibility/PHPCompatibility/commit/47ba8b691f82d13dcfe496549c1110d250e18a8c --> | |
| <file>sources</file> | |
| <arg name="extensions" value="php"/> | |
| <arg value="ps"/> | |
| <arg name="basepath" value="./sources/"/> | |
| <arg name="parallel" value="8"/> | |
| <arg name="no-colors"/> | |
| <arg name="ignore-annotations"/> | |
| <arg name="report" value="code,summary,source"/> | |
| <exclude-pattern>*/vendor/*</exclude-pattern> | |
| <exclude-pattern>*/node_modules/*</exclude-pattern> | |
| <!-- We are specifically and only checking for the PHP 8.6 Mb regex deprecations. --> | |
| <config name="testVersion" value="8.6"/> | |
| <rule ref="PHPCompatibility.Constants.RemovedConstants"/> | |
| <rule ref="PHPCompatibility.FunctionUse.RemovedFunctions"/> | |
| <rule ref="PHPCompatibility.IniDirectives.RemovedIniDirectives"/> | |
| <rule ref="Internal.NoCodeFound"> | |
| <severity>0</severity> | |
| </rule> | |
| <rule ref="Internal.LineEndings.Mixed"> | |
| <severity>0</severity> | |
| </rule> | |
| </ruleset> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PHP CODE SNIFFER VIOLATION SOURCE SUMMARY | |
| ------------------------------------------------------------------------------------------- | |
| SOURCE COUNT | |
| ------------------------------------------------------------------------------------------- | |
| PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated 30 | |
| PHPCompatibility.FunctionUse.RemovedFunctions.mb_regex_encodingDeprecated 25 | |
| PHPCompatibility.FunctionUse.RemovedFunctions.mb_eregi_replaceDeprecated 20 | |
| PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_replaceDeprecated 18 | |
| PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_matchDeprecated 13 | |
| PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_initDeprecated 10 | |
| PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_regsDeprecated 9 | |
| PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_replace_callbackDeprecated 6 | |
| PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_getregsDeprecated 5 | |
| PHPCompatibility.FunctionUse.RemovedFunctions.mb_eregDeprecated 4 | |
| PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_setposDeprecated 4 | |
| PHPCompatibility.FunctionUse.RemovedFunctions.mb_eregiDeprecated 2 | |
| PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_posDeprecated 1 | |
| ------------------------------------------------------------------------------------------- | |
| A TOTAL OF 147 SNIFF VIOLATIONS WERE FOUND IN 13 SOURCES | |
| ------------------------------------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PHP CODE SNIFFER REPORT SUMMARY | |
| ------------------------------------------------------------------------------------------------- | |
| FILE ERRORS WARNINGS | |
| ------------------------------------------------------------------------------------------------- | |
| auth0/auth0-php--8.18.0/src/Mixins/ConfigurableMixin.php 0 2 | |
| danielstjules/stringy--3.1.0/src/Stringy.php 0 3 | |
| deeplcom/deepl-php--v1.16.0/src/GlossaryUtils.php 0 1 | |
| drupal/core--11.3.5/modules/views/src/Plugin/views/field/FieldPluginBase.php 0 2 | |
| easyrdf/easyrdf--1.1.1/lib/Literal/Decimal.php 0 2 | |
| easyrdf/easyrdf--1.1.1/lib/Sparql/Client.php 0 1 | |
| illuminate/support--v13.1.1/Str.php 0 4 | |
| laravel/framework--v13.1.1/src/Illuminate/Support/Str.php 0 4 | |
| mantas-done/subtitles--v2.0.2/src/Code/Converters/RtfReader.php 0 1 | |
| mantas-done/subtitles--v2.0.2/src/Code/Converters/SrtConverter.php 0 1 | |
| mantas-done/subtitles--v2.0.2/src/Code/Converters/TxtConverter.php 0 3 | |
| mantas-done/subtitles--v2.0.2/src/Code/Converters/VttConverter.php 0 2 | |
| mpdf/mpdf--v8.3.1/src/Mpdf.php 0 3 | |
| paquettg/php-html-parser--3.1.1/src/PHPHtmlParser/Dom/Cleaner.php 0 11 | |
| paquettg/php-html-parser--3.1.1/src/PHPHtmlParser/Dom/Node/TextNode.php 0 1 | |
| paquettg/string-encode--2.1.1/src/StringEncoder/MB/Regex.php 0 4 | |
| patchwork/utf8--v1.3.3/src/Patchwork/Utf8/Bootup.php 0 1 | |
| phiki/phiki--v2.1.1/src/TextMate/PatternSearcher.php 0 5 | |
| propel/propel--2.0.0-beta4/src/Propel/Runtime/Adapter/Pdo/SqliteAdapter.php 0 2 | |
| shish/safe--v2.6.4/generated/mbstring.php 0 17 | |
| shopware/elasticsearch--v6.7.8.2/Admin/AdminSearcher.php 0 3 | |
| silverstripe/framework--6.2.0-rc1/src/Core/BaseKernel.php 0 1 | |
| smarty/smarty--v5.8.0/src/functions.php 0 5 | |
| statamic/cms--v6.7.1/src/Search/Comb/Comb.php 0 1 | |
| statamic/stringy--3.1.3/src/Stringy.php 0 3 | |
| sweetrdf/easyrdf--1.19.0/lib/Literal/Decimal.php 0 2 | |
| sweetrdf/easyrdf--1.19.0/lib/Sparql/Client.php 0 1 | |
| thecodingmachine/safe--v3.4.0/generated/8.1/mbstring.php 0 17 | |
| thecodingmachine/safe--v3.4.0/generated/8.4/mbstring.php 0 17 | |
| twig/extensions--v1.5.4/lib/Twig/Extensions/Extension/Text.php 0 4 | |
| vipnytt/sitemapparser--v1.3.1/src/SitemapParser.php 0 4 | |
| voku/portable-utf8--6.0.13/src/voku/helper/UTF8.php 0 19 | |
| ------------------------------------------------------------------------------------------------- | |
| A TOTAL OF 0 ERRORS AND 147 WARNINGS WERE FOUND IN 32 FILES | |
| ------------------------------------------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PHP_CodeSniffer version 4.0.2 (stable) by Squiz and PHPCSStandards | |
| FILE: auth0\auth0-php--8.18.0\src\Mixins\ConfigurableMixin.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 205: WARNING Function mb_regex_encoding() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_regex_encodingDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 203: private function filterString(string $string): string | |
| 204: { | |
| >> 205: mb_regex_encoding('UTF-8'); | |
| 206: | |
| 207: $processed = trim($string); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 211: WARNING Function mb_ereg_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_replaceDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 209: $processed = trim(strip_tags($processed)); | |
| 210: $processed = trim(htmlspecialchars($processed, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8', false)); | |
| >> 211: $processed = mb_ereg_replace('[^\p{Ll}\p{Lu}\p{Nd}\p{Pd}\p{Pc}\p{Zs}\:\/\.\?\=]', '', $processed); | |
| 212: | |
| 213: return (is_string($processed) && '' !== $processed) ? $processed : ''; | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: danielstjules\stringy--3.1.0\src\Stringy.php | |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | |
| FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES | |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 1288: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 1286: | |
| 1287: if ($functionExists) { | |
| >> 1288: $array = \mb_split($pattern, $this->str, $limit); | |
| 1289: } else if ($this->supportsEncoding()) { | |
| 1290: $array = \preg_split("/$pattern/", $this->str, $limit); | |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 1931: WARNING Function mb_ereg_match() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_matchDeprecated) | |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 1929: $this->regexEncoding($this->encoding); | |
| 1930: | |
| >> 1931: $match = \mb_ereg_match($pattern, $this->str); | |
| 1932: $this->regexEncoding($regexEncoding); | |
| 1933: | |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 1949: WARNING Function mb_ereg_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_replaceDeprecated) | |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 1947: | |
| 1948: if ($functionExists) { | |
| >> 1949: return \mb_ereg_replace($pattern, $replacement, $string, $option); | |
| 1950: } else if ($this->supportsEncoding()) { | |
| 1951: $option = str_replace('r', '', $option); | |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | |
| FILE: deeplcom\deepl-php--v1.16.0\src\GlossaryUtils.php | |
| ------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 18: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------ | |
| 16: $entries = []; | |
| 17: $lineNumber = 0; | |
| >> 18: foreach (mb_split('/\r\n|\n|\r/', $tsv) as $line) { | |
| 19: $lineNumber++; | |
| 20: $lineTrimmed = trim($line); | |
| ------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: drupal\core--11.3.5\modules\views\src\Plugin\views\field\FieldPluginBase.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 1876: WARNING Function mb_regex_encoding() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_regex_encodingDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 1874: $regex = "(.*)\b.+"; | |
| 1875: if (function_exists('mb_ereg')) { | |
| >> 1876: mb_regex_encoding('UTF-8'); | |
| 1877: $found = mb_ereg($regex, $value, $matches); | |
| 1878: } | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 1877: WARNING Function mb_ereg() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_eregDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 1875: if (function_exists('mb_ereg')) { | |
| 1876: mb_regex_encoding('UTF-8'); | |
| >> 1877: $found = mb_ereg($regex, $value, $matches); | |
| 1878: } | |
| 1879: else { | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: easyrdf\easyrdf--1.1.1\lib\Literal\Decimal.php | |
| ----------------------------------------------------------------------------------------------------------------------------------------------- | |
| FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES | |
| ----------------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 95: WARNING Function mb_ereg_match() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_matchDeprecated) | |
| ----------------------------------------------------------------------------------------------------------------------------------------------- | |
| 93: public static function validate($value) | |
| 94: { | |
| >> 95: if (!mb_ereg_match(self::DECIMAL_REGEX, $value)) { | |
| 96: throw new \UnexpectedValueException("'{$value}' doesn't look like a valid decimal"); | |
| 97: } | |
| ----------------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 111: WARNING Function mb_ereg() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_eregDeprecated) | |
| ----------------------------------------------------------------------------------------------------------------------------------------------- | |
| 109: { | |
| 110: $pieces = array(); | |
| >> 111: mb_ereg(self::DECIMAL_REGEX, $value, $pieces); | |
| 112: | |
| 113: $sign = $pieces[1] === '-' ? '-' : ''; // '+' is not allowed | |
| ----------------------------------------------------------------------------------------------------------------------------------------------- | |
| FILE: easyrdf\easyrdf--1.1.1\lib\Sparql\Client.php | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 330: WARNING Function mb_eregi() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_eregiDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| 328: | |
| 329: $result = null; | |
| >> 330: $matched = mb_eregi($re, $processed_query, $result); | |
| 331: | |
| 332: if (false === $matched or count($result) !== 2) { | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| FILE: illuminate\support--v13.1.1\Str.php | |
| -------------------------------------------------------------------------------------------------------------------------------------- | |
| FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES | |
| -------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 1451: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| -------------------------------------------------------------------------------------------------------------------------------------- | |
| 1449: public static function headline($value) | |
| 1450: { | |
| >> 1451: $parts = mb_split('\s+', $value); | |
| 1452: | |
| 1453: $parts = count($parts) > 1 | |
| -------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 1471: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| -------------------------------------------------------------------------------------------------------------------------------------- | |
| 1469: public static function initials($value, $capitalize = false) | |
| 1470: { | |
| >> 1471: $parts = mb_split("\s+", $value); | |
| 1472: | |
| 1473: $parts = array_map(fn ($part) => mb_substr($part, 0, 1), $parts); | |
| -------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 1502: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| -------------------------------------------------------------------------------------------------------------------------------------- | |
| 1500: $endPunctuation = ['.', '!', '?', ':', '—', ',']; | |
| 1501: | |
| >> 1502: $words = mb_split('\s+', $value); | |
| 1503: $wordCount = count($words); | |
| 1504: | |
| -------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 1722: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| -------------------------------------------------------------------------------------------------------------------------------------- | |
| 1720: } | |
| 1721: | |
| >> 1722: $words = mb_split('\s+', static::replace(['-', '_'], ' ', $value)); | |
| 1723: | |
| 1724: $studlyWords = array_map(fn ($word) => static::ucfirst($word), $words); | |
| -------------------------------------------------------------------------------------------------------------------------------------- | |
| FILE: laravel\framework--v13.1.1\src\Illuminate\Support\Str.php | |
| -------------------------------------------------------------------------------------------------------------------------------------- | |
| FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES | |
| -------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 1451: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| -------------------------------------------------------------------------------------------------------------------------------------- | |
| 1449: public static function headline($value) | |
| 1450: { | |
| >> 1451: $parts = mb_split('\s+', $value); | |
| 1452: | |
| 1453: $parts = count($parts) > 1 | |
| -------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 1471: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| -------------------------------------------------------------------------------------------------------------------------------------- | |
| 1469: public static function initials($value, $capitalize = false) | |
| 1470: { | |
| >> 1471: $parts = mb_split("\s+", $value); | |
| 1472: | |
| 1473: $parts = array_map(fn ($part) => mb_substr($part, 0, 1), $parts); | |
| -------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 1502: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| -------------------------------------------------------------------------------------------------------------------------------------- | |
| 1500: $endPunctuation = ['.', '!', '?', ':', '—', ',']; | |
| 1501: | |
| >> 1502: $words = mb_split('\s+', $value); | |
| 1503: $wordCount = count($words); | |
| 1504: | |
| -------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 1722: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| -------------------------------------------------------------------------------------------------------------------------------------- | |
| 1720: } | |
| 1721: | |
| >> 1722: $words = mb_split('\s+', static::replace(['-', '_'], ' ', $value)); | |
| 1723: | |
| 1724: $studlyWords = array_map(fn ($word) => static::ucfirst($word), $words); | |
| -------------------------------------------------------------------------------------------------------------------------------------- | |
| FILE: mantas-done\subtitles--v2.0.2\src\Code\Converters\RtfReader.php | |
| ------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 23: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------ | |
| 21: | |
| 22: // remove backslashes | |
| >> 23: $lines = mb_split("\n", $text); | |
| 24: if ($lines === false) { | |
| 25: throw new UserException("RtfReader: File content is not valid"); | |
| ------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: mantas-done\subtitles--v2.0.2\src\Code\Converters\SrtConverter.php | |
| ------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 23: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------ | |
| 21: public function fileContentToInternalFormat(string $file_content, string $original_file_content, bool $strict): array | |
| 22: { | |
| >> 23: $lines = mb_split("\n", $file_content); | |
| 24: $internal_format = []; | |
| 25: $i = -1; | |
| ------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: mantas-done\subtitles--v2.0.2\src\Code\Converters\TxtConverter.php | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 27: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| 25: $file_content2 = trim($file_content); | |
| 26: $file_content2 = preg_replace("/\n+/", "\n", $file_content2); | |
| >> 27: $lines = mb_split("\n", $file_content2); | |
| 28: if ($lines === false) { | |
| 29: throw new UserException("Can't get lines from this file"); | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 463: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| 461: private static function countLinesWithEmptyLines($file_content) { | |
| 462: $file_content = trim($file_content); | |
| >> 463: $lines = mb_split("\n", $file_content); | |
| 464: $single_empty_lines = 0; | |
| 465: $double_text_lines = 0; | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 496: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| 494: private static function twoLinesSeparatedByEmptyLine(string $file_content) | |
| 495: { | |
| >> 496: $lines = mb_split("\n", $file_content); | |
| 497: $internal_format = []; | |
| 498: $i = 0; | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| FILE: mantas-done\subtitles--v2.0.2\src\Code\Converters\VttConverter.php | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 23: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| 21: $content = self::removeComments($file_content); | |
| 22: | |
| >> 23: $lines = mb_split("\n", $content); | |
| 24: $colon_count = 1; | |
| 25: $internal_format = []; | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 167: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| 165: protected static function removeComments($content) | |
| 166: { | |
| >> 167: $lines = mb_split("\n", $content); | |
| 168: $lines = array_map('trim', $lines); | |
| 169: $new_lines = []; | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| FILE: mpdf\mpdf--v8.3.1\src\Mpdf.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 1149: WARNING Function mb_regex_encoding() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_regex_encodingDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 1147: $this->mb_enc = 'windows-1252'; | |
| 1148: $this->originalMbEnc = mb_internal_encoding(); | |
| >> 1149: $this->originalMbRegexEnc = mb_regex_encoding(); | |
| 1150: | |
| 1151: $this->directionality = 'ltr'; | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 1423: WARNING Function mb_regex_encoding() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_regex_encodingDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 1421: $this->setMBencoding('UTF-8'); // sets $this->mb_enc | |
| 1422: } | |
| >> 1423: @mb_regex_encoding('UTF-8'); // required only for mb_ereg... and mb_split functions | |
| 1424: | |
| 1425: // Adobe CJK fonts | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 1573: WARNING Function mb_regex_encoding() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_regex_encodingDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 1571: { | |
| 1572: mb_internal_encoding($this->originalMbEnc); | |
| >> 1573: @mb_regex_encoding($this->originalMbRegexEnc); | |
| 1574: | |
| 1575: // this will free up the readers, based on code from Setasign's FpdiTrait::cleanUp() | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: paquettg\php-html-parser--3.1.1\src\PHPHtmlParser\Dom\Cleaner.php | |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| FOUND 0 ERRORS AND 11 WARNINGS AFFECTING 11 LINES | |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 38: WARNING Function mb_eregi_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_eregi_replaceDeprecated) | |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 36: | |
| 37: // remove white space before closing tags | |
| >> 38: $str = \mb_eregi_replace("'\s+>", "'>", $str); | |
| 39: if ($str === false) { | |
| 40: throw new LogicalException('mb_eregi_replace returned false instead of a string. Error when attempting to clean single quotes.'); | |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 42: WARNING Function mb_eregi_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_eregi_replaceDeprecated) | |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 40: throw new LogicalException('mb_eregi_replace returned false instead of a string. Error when attempting to clean single quotes.'); | |
| 41: } | |
| >> 42: $str = \mb_eregi_replace('"\s+>', '">', $str); | |
| 43: if ($str === false) { | |
| 44: throw new LogicalException('mb_eregi_replace returned false instead of a string. Error when attempting to clean double quotes.'); | |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 58: WARNING Function mb_eregi_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_eregi_replaceDeprecated) | |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 56: | |
| 57: // strip the doctype | |
| >> 58: $str = \mb_eregi_replace('<!doctype(.*?)>', '', $str); | |
| 59: if ($str === false) { | |
| 60: throw new LogicalException('mb_eregi_replace returned false instead of a string. Error when attempting to strip the doctype.'); | |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 64: WARNING Function mb_eregi_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_eregi_replaceDeprecated) | |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 62: | |
| 63: // strip out comments | |
| >> 64: $str = \mb_eregi_replace('<!--(.*?)-->', '', $str); | |
| 65: if ($str === false) { | |
| 66: throw new LogicalException('mb_eregi_replace returned false instead of a string. Error when attempting to strip comments.'); | |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 70: WARNING Function mb_eregi_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_eregi_replaceDeprecated) | |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 68: | |
| 69: // strip out cdata | |
| >> 70: $str = \mb_eregi_replace("<!\[CDATA\[(.*?)\]\]>", '', $str); | |
| 71: if ($str === false) { | |
| 72: throw new LogicalException('mb_eregi_replace returned false instead of a string. Error when attempting to strip out cdata.'); | |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 77: WARNING Function mb_eregi_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_eregi_replaceDeprecated) | |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 75: // strip out <script> tags | |
| 76: if ($options->isRemoveScripts()) { | |
| >> 77: $str = \mb_eregi_replace("<\s*script[^>]*[^/]>(.*?)<\s*/\s*script\s*>", '', $str); | |
| 78: if ($str === false) { | |
| 79: throw new LogicalException('mb_eregi_replace returned false instead of a string. Error when attempting to remove scripts 1.'); | |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 81: WARNING Function mb_eregi_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_eregi_replaceDeprecated) | |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 79: throw new LogicalException('mb_eregi_replace returned false instead of a string. Error when attempting to remove scripts 1.'); | |
| 80: } | |
| >> 81: $str = \mb_eregi_replace("<\s*script\s*>(.*?)<\s*/\s*script\s*>", '', $str); | |
| 82: if ($str === false) { | |
| 83: throw new LogicalException('mb_eregi_replace returned false instead of a string. Error when attempting to remove scripts 2.'); | |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 89: WARNING Function mb_eregi_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_eregi_replaceDeprecated) | |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 87: // strip out <style> tags | |
| 88: if ($options->isRemoveStyles()) { | |
| >> 89: $str = \mb_eregi_replace("<\s*style[^>]*[^/]>(.*?)<\s*/\s*style\s*>", '', $str); | |
| 90: if ($str === false) { | |
| 91: throw new LogicalException('mb_eregi_replace returned false instead of a string. Error when attempting to strip out style tags 1.'); | |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 93: WARNING Function mb_eregi_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_eregi_replaceDeprecated) | |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 91: throw new LogicalException('mb_eregi_replace returned false instead of a string. Error when attempting to strip out style tags 1.'); | |
| 92: } | |
| >> 93: $str = \mb_eregi_replace("<\s*style\s*>(.*?)<\s*/\s*style\s*>", '', $str); | |
| 94: if ($str === false) { | |
| 95: throw new LogicalException('mb_eregi_replace returned false instead of a string. Error when attempting to strip out style tags 2.'); | |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 101: WARNING Function mb_eregi_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_eregi_replaceDeprecated) | |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 99: // strip smarty scripts | |
| 100: if ($options->isRemoveSmartyScripts()) { | |
| >> 101: $str = \mb_eregi_replace("(\{\w)(.*?)(\})", '', $str); | |
| 102: if ($str === false) { | |
| 103: throw new LogicalException('mb_eregi_replace returned false instead of a string. Error when attempting to remove smarty scripts.'); | |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 124: WARNING Function mb_regex_encoding() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_regex_encodingDeprecated) | |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 122: } | |
| 123: | |
| >> 124: if (!\mb_regex_encoding($encoding)) { | |
| 125: throw new LogicalException('Character encoding was not able to be changed to ' . $encoding . '.'); | |
| 126: } | |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| FILE: paquettg\php-html-parser--3.1.1\src\PHPHtmlParser\Dom\Node\TextNode.php | |
| -------------------------------------------------------------------------------------------------------------------------------------------------- | |
| FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE | |
| -------------------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 52: WARNING Function mb_ereg_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_replaceDeprecated) | |
| -------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 50: if ($removeDoubleSpace) { | |
| 51: // remove double spaces | |
| >> 52: $replacedText = \mb_ereg_replace('\s+', ' ', $text); | |
| 53: if ($replacedText === false) { | |
| 54: throw new LogicalException('mb_ereg_replace returns false when attempting to clean white space from "' . $text . '".'); | |
| -------------------------------------------------------------------------------------------------------------------------------------------------- | |
| FILE: paquettg\string-encode--2.1.1\src\StringEncoder\MB\Regex.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 21: WARNING Function mb_regex_encoding() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_regex_encodingDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 19: { | |
| 20: $encodingDTO = EncodingDTO::makeFromString($encoding); | |
| >> 21: \mb_regex_encoding($encodingDTO->getEncoding()); | |
| 22: } | |
| 23: | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 26: WARNING Function mb_regex_encoding() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_regex_encodingDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 24: public function getEncoding(): string | |
| 25: { | |
| >> 26: return \mb_regex_encoding(); | |
| 27: } | |
| 28: | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 39: WARNING Function mb_eregi_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_eregi_replaceDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 37: ): MBStringDTOInterface { | |
| 38: if ($ignoreCase) { | |
| >> 39: $value = \mb_eregi_replace($pattern, $replace, $MBStringDTO->getString()); | |
| 40: } else { | |
| 41: $value = \mb_ereg_replace($pattern, $replace, $MBStringDTO->getString()); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 41: WARNING Function mb_ereg_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_replaceDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 39: $value = \mb_eregi_replace($pattern, $replace, $MBStringDTO->getString()); | |
| 40: } else { | |
| >> 41: $value = \mb_ereg_replace($pattern, $replace, $MBStringDTO->getString()); | |
| 42: } | |
| 43: | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: patchwork\utf8--v1.3.3\src\Patchwork\Utf8\Bootup.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 50: WARNING Function mb_regex_encoding() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_regex_encodingDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 48: | |
| 49: if (function_exists('mb_regex_encoding')) { | |
| >> 50: mb_regex_encoding('UTF-8'); | |
| 51: } | |
| 52: ini_set('mbstring.script_encoding', 'pass'); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: phiki\phiki--v2.1.1\src\TextMate\PatternSearcher.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 40: WARNING Function mb_ereg_search_init() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_initDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 38: $bestPattern = null; | |
| 39: | |
| >> 40: if (! mb_ereg_search_init($lineText)) { | |
| 41: throw new FailedToInitializePatternSearchException; | |
| 42: } | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 45: WARNING Function mb_ereg_search_setpos() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_setposDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 43: | |
| 44: foreach ($patterns as [$pattern, $regex]) { | |
| >> 45: if (! mb_ereg_search_setpos($linePos)) { | |
| 46: throw new FailedToSetSearchPositionException; | |
| 47: } | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 49: WARNING Function mb_ereg_search_pos() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_posDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 47: } | |
| 48: | |
| >> 49: $result = @mb_ereg_search_pos($regex); | |
| 50: | |
| 51: if ($result === false) { | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 59: WARNING Function mb_ereg_search_getregs() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_getregsDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 57: if ($start === $linePos) { | |
| 58: $bestLocation = $start; | |
| >> 59: $bestMatches = mb_ereg_search_getregs(); | |
| 60: $bestLength = $length; | |
| 61: $bestPattern = $pattern; | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 69: WARNING Function mb_ereg_search_getregs() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_getregsDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 67: $bestLocation = $start; | |
| 68: $bestLength = $length; | |
| >> 69: $bestMatches = mb_ereg_search_getregs(); | |
| 70: $bestPattern = $pattern; | |
| 71: | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: propel\propel--2.0.0-beta4\src\Propel\Runtime\Adapter\Pdo\SqliteAdapter.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 49: WARNING Function mb_regex_encoding() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_regex_encodingDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 47: //add regex support | |
| 48: $con->sqliteCreateFunction('regexp', function ($pattern, $value) { | |
| >> 49: mb_regex_encoding('UTF-8'); | |
| 50: | |
| 51: return (mb_ereg($pattern, $value) !== false) ? 1 : 0; | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 51: WARNING Function mb_ereg() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_eregDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 49: mb_regex_encoding('UTF-8'); | |
| 50: | |
| >> 51: return (mb_ereg($pattern, $value) !== false) ? 1 : 0; | |
| 52: }); | |
| 53: } | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: shish\safe--v2.6.4\generated\mbstring.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 17 WARNINGS AFFECTING 17 LINES | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 158: WARNING Function mb_ereg_replace_callback() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_replace_callbackDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 156: error_clear_last(); | |
| 157: if ($options !== null) { | |
| >> 158: $safeResult = \mb_ereg_replace_callback($pattern, $callback, $string, $options); | |
| 159: } else { | |
| 160: $safeResult = \mb_ereg_replace_callback($pattern, $callback, $string); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 160: WARNING Function mb_ereg_replace_callback() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_replace_callbackDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 158: $safeResult = \mb_ereg_replace_callback($pattern, $callback, $string, $options); | |
| 159: } else { | |
| >> 160: $safeResult = \mb_ereg_replace_callback($pattern, $callback, $string); | |
| 161: } | |
| 162: if ($safeResult === false) { | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 188: WARNING Function mb_ereg_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_replaceDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 186: error_clear_last(); | |
| 187: if ($options !== null) { | |
| >> 188: $safeResult = \mb_ereg_replace($pattern, $replacement, $string, $options); | |
| 189: } else { | |
| 190: $safeResult = \mb_ereg_replace($pattern, $replacement, $string); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 190: WARNING Function mb_ereg_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_replaceDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 188: $safeResult = \mb_ereg_replace($pattern, $replacement, $string, $options); | |
| 189: } else { | |
| >> 190: $safeResult = \mb_ereg_replace($pattern, $replacement, $string); | |
| 191: } | |
| 192: if ($safeResult === false) { | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 209: WARNING Function mb_ereg_search_getregs() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_getregsDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 207: { | |
| 208: error_clear_last(); | |
| >> 209: $safeResult = \mb_ereg_search_getregs(); | |
| 210: if ($safeResult === false) { | |
| 211: throw MbstringException::createFromPhpError(); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 235: WARNING Function mb_ereg_search_init() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_initDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 233: error_clear_last(); | |
| 234: if ($options !== null) { | |
| >> 235: $safeResult = \mb_ereg_search_init($string, $pattern, $options); | |
| 236: } elseif ($pattern !== null) { | |
| 237: $safeResult = \mb_ereg_search_init($string, $pattern); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 237: WARNING Function mb_ereg_search_init() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_initDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 235: $safeResult = \mb_ereg_search_init($string, $pattern, $options); | |
| 236: } elseif ($pattern !== null) { | |
| >> 237: $safeResult = \mb_ereg_search_init($string, $pattern); | |
| 238: } else { | |
| 239: $safeResult = \mb_ereg_search_init($string); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 239: WARNING Function mb_ereg_search_init() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_initDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 237: $safeResult = \mb_ereg_search_init($string, $pattern); | |
| 238: } else { | |
| >> 239: $safeResult = \mb_ereg_search_init($string); | |
| 240: } | |
| 241: if ($safeResult === false) { | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 260: WARNING Function mb_ereg_search_regs() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_regsDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 258: error_clear_last(); | |
| 259: if ($options !== null) { | |
| >> 260: $safeResult = \mb_ereg_search_regs($pattern, $options); | |
| 261: } elseif ($pattern !== null) { | |
| 262: $safeResult = \mb_ereg_search_regs($pattern); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 262: WARNING Function mb_ereg_search_regs() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_regsDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 260: $safeResult = \mb_ereg_search_regs($pattern, $options); | |
| 261: } elseif ($pattern !== null) { | |
| >> 262: $safeResult = \mb_ereg_search_regs($pattern); | |
| 263: } else { | |
| 264: $safeResult = \mb_ereg_search_regs(); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 264: WARNING Function mb_ereg_search_regs() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_regsDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 262: $safeResult = \mb_ereg_search_regs($pattern); | |
| 263: } else { | |
| >> 264: $safeResult = \mb_ereg_search_regs(); | |
| 265: } | |
| 266: if ($safeResult === false) { | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 283: WARNING Function mb_ereg_search_setpos() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_setposDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 281: { | |
| 282: error_clear_last(); | |
| >> 283: $safeResult = \mb_ereg_search_setpos($offset); | |
| 284: if ($safeResult === false) { | |
| 285: throw MbstringException::createFromPhpError(); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 307: WARNING Function mb_eregi_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_eregi_replaceDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 305: error_clear_last(); | |
| 306: if ($options !== null) { | |
| >> 307: $safeResult = \mb_eregi_replace($pattern, $replacement, $string, $options); | |
| 308: } else { | |
| 309: $safeResult = \mb_eregi_replace($pattern, $replacement, $string); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 309: WARNING Function mb_eregi_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_eregi_replaceDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 307: $safeResult = \mb_eregi_replace($pattern, $replacement, $string, $options); | |
| 308: } else { | |
| >> 309: $safeResult = \mb_eregi_replace($pattern, $replacement, $string); | |
| 310: } | |
| 311: if ($safeResult === false) { | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 485: WARNING Function mb_regex_encoding() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_regex_encodingDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 483: error_clear_last(); | |
| 484: if ($encoding !== null) { | |
| >> 485: $safeResult = \mb_regex_encoding($encoding); | |
| 486: } else { | |
| 487: $safeResult = \mb_regex_encoding(); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 487: WARNING Function mb_regex_encoding() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_regex_encodingDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 485: $safeResult = \mb_regex_encoding($encoding); | |
| 486: } else { | |
| >> 487: $safeResult = \mb_regex_encoding(); | |
| 488: } | |
| 489: if ($safeResult === false) { | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 580: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 578: { | |
| 579: error_clear_last(); | |
| >> 580: $safeResult = \mb_split($pattern, $string, $limit); | |
| 581: if ($safeResult === false) { | |
| 582: throw MbstringException::createFromPhpError(); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: shopware\elasticsearch--v6.7.8.2\Admin\AdminSearcher.php | |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | |
| FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES | |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 44: WARNING Function mb_eregi_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_eregi_replaceDeprecated) | |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 42: | |
| 43: $index = []; | |
| >> 44: $term = (string) mb_eregi_replace('\s(or)\s', '|', $term); | |
| 45: $term = (string) mb_eregi_replace('\s(and)\s', ' + ', $term); | |
| 46: $term = (string) mb_eregi_replace('\s(not)\s', ' -', $term); | |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 45: WARNING Function mb_eregi_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_eregi_replaceDeprecated) | |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 43: $index = []; | |
| 44: $term = (string) mb_eregi_replace('\s(or)\s', '|', $term); | |
| >> 45: $term = (string) mb_eregi_replace('\s(and)\s', ' + ', $term); | |
| 46: $term = (string) mb_eregi_replace('\s(not)\s', ' -', $term); | |
| 47: | |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 46: WARNING Function mb_eregi_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_eregi_replaceDeprecated) | |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 44: $term = (string) mb_eregi_replace('\s(or)\s', '|', $term); | |
| 45: $term = (string) mb_eregi_replace('\s(and)\s', ' + ', $term); | |
| >> 46: $term = (string) mb_eregi_replace('\s(not)\s', ' -', $term); | |
| 47: | |
| 48: foreach ($entities as $entityName) { | |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | |
| FILE: silverstripe\framework--6.2.0-rc1\src\Core\BaseKernel.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 169: WARNING Function mb_regex_encoding() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_regex_encodingDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 167: mb_http_output('UTF-8'); | |
| 168: mb_internal_encoding('UTF-8'); | |
| >> 169: mb_regex_encoding('UTF-8'); | |
| 170: | |
| 171: /** | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: smarty\smarty--v5.8.0\src\functions.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 5 LINES | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 131: WARNING Function mb_regex_encoding() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_regex_encodingDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 129: } | |
| 130: } else { | |
| >> 131: $mb_reg_charset = mb_regex_encoding(); | |
| 132: // Check if mbstring regex is using UTF-8 | |
| 133: $reg_is_unicode = !strcasecmp($mb_reg_charset, "UTF-8"); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 136: WARNING Function mb_regex_encoding() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_regex_encodingDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 134: if(!$reg_is_unicode) { | |
| 135: // ...and set to UTF-8 if not | |
| >> 136: mb_regex_encoding("UTF-8"); | |
| 137: } | |
| 138: | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 140: WARNING Function mb_regex_encoding() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_regex_encodingDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 138: | |
| 139: // See if charset used by Smarty is matching one used by regex... | |
| >> 140: $current_charset = mb_regex_encoding(); | |
| 141: $convert_result = (bool)strcasecmp(\Smarty\Smarty::$_CHARSET, $current_charset); | |
| 142: if($convert_result) { | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 149: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 147: } | |
| 148: | |
| >> 149: $parts = mb_split(preg_quote($search), $subject ?? "") ?: array(); | |
| 150: // If original regex encoding was not unicode... | |
| 151: if(!$reg_is_unicode) { | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 153: WARNING Function mb_regex_encoding() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_regex_encodingDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 151: if(!$reg_is_unicode) { | |
| 152: // ...restore original regex encoding to avoid breaking the system. | |
| >> 153: mb_regex_encoding($mb_reg_charset); | |
| 154: } | |
| 155: if($parts === false) { | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: statamic\cms--v6.7.1\src\Search\Comb\Comb.php | |
| --------------------------------------------------------------------------------------------------------------------------------------------------- | |
| FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE | |
| --------------------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 382: WARNING Function mb_ereg_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_replaceDeprecated) | |
| --------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 380: private function preformat($raw_query) | |
| 381: { | |
| >> 382: return trim(mb_ereg_replace("[^\w\d\-\.:+\s\\\/@&’'‘]", '', $raw_query)); | |
| 383: } | |
| 384: | |
| --------------------------------------------------------------------------------------------------------------------------------------------------- | |
| FILE: statamic\stringy--3.1.3\src\Stringy.php | |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | |
| FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES | |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 1294: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 1292: | |
| 1293: if ($functionExists) { | |
| >> 1294: $array = \mb_split($pattern, $this->str, $limit); | |
| 1295: } else if ($this->supportsEncoding()) { | |
| 1296: $array = \preg_split("/$pattern/", $this->str, $limit); | |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 1937: WARNING Function mb_ereg_match() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_matchDeprecated) | |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 1935: $this->regexEncoding($this->encoding); | |
| 1936: | |
| >> 1937: $match = \mb_ereg_match($pattern, $this->str); | |
| 1938: $this->regexEncoding($regexEncoding); | |
| 1939: | |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 1955: WARNING Function mb_ereg_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_replaceDeprecated) | |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 1953: | |
| 1954: if ($functionExists) { | |
| >> 1955: return \mb_ereg_replace($pattern, $replacement, $string, $option); | |
| 1956: } else if ($this->supportsEncoding()) { | |
| 1957: $option = str_replace('r', '', $option); | |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | |
| FILE: sweetrdf\easyrdf--1.19.0\lib\Literal\Decimal.php | |
| ----------------------------------------------------------------------------------------------------------------------------------------------- | |
| FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES | |
| ----------------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 103: WARNING Function mb_ereg_match() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_matchDeprecated) | |
| ----------------------------------------------------------------------------------------------------------------------------------------------- | |
| 101: public static function validate($value) | |
| 102: { | |
| >> 103: if (!mb_ereg_match(self::DECIMAL_REGEX, $value)) { | |
| 104: throw new \UnexpectedValueException("'{$value}' doesn't look like a valid decimal"); | |
| 105: } | |
| ----------------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 119: WARNING Function mb_ereg() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_eregDeprecated) | |
| ----------------------------------------------------------------------------------------------------------------------------------------------- | |
| 117: { | |
| 118: $pieces = []; | |
| >> 119: mb_ereg(self::DECIMAL_REGEX, $value, $pieces); | |
| 120: | |
| 121: $sign = '-' === $pieces[1] ? '-' : ''; // '+' is not allowed | |
| ----------------------------------------------------------------------------------------------------------------------------------------------- | |
| FILE: sweetrdf\easyrdf--1.19.0\lib\Sparql\Client.php | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 357: WARNING Function mb_eregi() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_eregiDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| 355: | |
| 356: $result = null; | |
| >> 357: $matched = mb_eregi($re, $processed_query, $result); | |
| 358: | |
| 359: if (false == $matched || 2 !== \count($result)) { | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| FILE: thecodingmachine\safe--v3.4.0\generated\8.1\mbstring.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 17 WARNINGS AFFECTING 17 LINES | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 123: WARNING Function mb_ereg_replace_callback() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_replace_callbackDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 121: error_clear_last(); | |
| 122: if ($options !== null) { | |
| >> 123: $safeResult = \mb_ereg_replace_callback($pattern, $callback, $string, $options); | |
| 124: } else { | |
| 125: $safeResult = \mb_ereg_replace_callback($pattern, $callback, $string); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 125: WARNING Function mb_ereg_replace_callback() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_replace_callbackDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 123: $safeResult = \mb_ereg_replace_callback($pattern, $callback, $string, $options); | |
| 124: } else { | |
| >> 125: $safeResult = \mb_ereg_replace_callback($pattern, $callback, $string); | |
| 126: } | |
| 127: if ($safeResult === false) { | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 147: WARNING Function mb_ereg_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_replaceDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 145: error_clear_last(); | |
| 146: if ($options !== null) { | |
| >> 147: $safeResult = \mb_ereg_replace($pattern, $replacement, $string, $options); | |
| 148: } else { | |
| 149: $safeResult = \mb_ereg_replace($pattern, $replacement, $string); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 149: WARNING Function mb_ereg_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_replaceDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 147: $safeResult = \mb_ereg_replace($pattern, $replacement, $string, $options); | |
| 148: } else { | |
| >> 149: $safeResult = \mb_ereg_replace($pattern, $replacement, $string); | |
| 150: } | |
| 151: if ($safeResult === false) { | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 166: WARNING Function mb_ereg_search_getregs() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_getregsDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 164: { | |
| 165: error_clear_last(); | |
| >> 166: $safeResult = \mb_ereg_search_getregs(); | |
| 167: if ($safeResult === false) { | |
| 168: throw MbstringException::createFromPhpError(); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 185: WARNING Function mb_ereg_search_init() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_initDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 183: error_clear_last(); | |
| 184: if ($options !== null) { | |
| >> 185: $safeResult = \mb_ereg_search_init($string, $pattern, $options); | |
| 186: } elseif ($pattern !== null) { | |
| 187: $safeResult = \mb_ereg_search_init($string, $pattern); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 187: WARNING Function mb_ereg_search_init() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_initDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 185: $safeResult = \mb_ereg_search_init($string, $pattern, $options); | |
| 186: } elseif ($pattern !== null) { | |
| >> 187: $safeResult = \mb_ereg_search_init($string, $pattern); | |
| 188: } else { | |
| 189: $safeResult = \mb_ereg_search_init($string); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 189: WARNING Function mb_ereg_search_init() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_initDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 187: $safeResult = \mb_ereg_search_init($string, $pattern); | |
| 188: } else { | |
| >> 189: $safeResult = \mb_ereg_search_init($string); | |
| 190: } | |
| 191: if ($safeResult === false) { | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 208: WARNING Function mb_ereg_search_regs() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_regsDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 206: error_clear_last(); | |
| 207: if ($options !== null) { | |
| >> 208: $safeResult = \mb_ereg_search_regs($pattern, $options); | |
| 209: } elseif ($pattern !== null) { | |
| 210: $safeResult = \mb_ereg_search_regs($pattern); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 210: WARNING Function mb_ereg_search_regs() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_regsDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 208: $safeResult = \mb_ereg_search_regs($pattern, $options); | |
| 209: } elseif ($pattern !== null) { | |
| >> 210: $safeResult = \mb_ereg_search_regs($pattern); | |
| 211: } else { | |
| 212: $safeResult = \mb_ereg_search_regs(); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 212: WARNING Function mb_ereg_search_regs() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_regsDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 210: $safeResult = \mb_ereg_search_regs($pattern); | |
| 211: } else { | |
| >> 212: $safeResult = \mb_ereg_search_regs(); | |
| 213: } | |
| 214: if ($safeResult === false) { | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 229: WARNING Function mb_ereg_search_setpos() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_setposDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 227: { | |
| 228: error_clear_last(); | |
| >> 229: $safeResult = \mb_ereg_search_setpos($offset); | |
| 230: if ($safeResult === false) { | |
| 231: throw MbstringException::createFromPhpError(); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 249: WARNING Function mb_eregi_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_eregi_replaceDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 247: error_clear_last(); | |
| 248: if ($options !== null) { | |
| >> 249: $safeResult = \mb_eregi_replace($pattern, $replacement, $string, $options); | |
| 250: } else { | |
| 251: $safeResult = \mb_eregi_replace($pattern, $replacement, $string); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 251: WARNING Function mb_eregi_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_eregi_replaceDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 249: $safeResult = \mb_eregi_replace($pattern, $replacement, $string, $options); | |
| 250: } else { | |
| >> 251: $safeResult = \mb_eregi_replace($pattern, $replacement, $string); | |
| 252: } | |
| 253: if ($safeResult === false) { | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 367: WARNING Function mb_regex_encoding() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_regex_encodingDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 365: error_clear_last(); | |
| 366: if ($encoding !== null) { | |
| >> 367: $safeResult = \mb_regex_encoding($encoding); | |
| 368: } else { | |
| 369: $safeResult = \mb_regex_encoding(); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 369: WARNING Function mb_regex_encoding() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_regex_encodingDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 367: $safeResult = \mb_regex_encoding($encoding); | |
| 368: } else { | |
| >> 369: $safeResult = \mb_regex_encoding(); | |
| 370: } | |
| 371: if ($safeResult === false) { | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 412: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 410: { | |
| 411: error_clear_last(); | |
| >> 412: $safeResult = \mb_split($pattern, $string, $limit); | |
| 413: if ($safeResult === false) { | |
| 414: throw MbstringException::createFromPhpError(); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: thecodingmachine\safe--v3.4.0\generated\8.4\mbstring.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 17 WARNINGS AFFECTING 17 LINES | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 119: WARNING Function mb_ereg_replace_callback() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_replace_callbackDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 117: error_clear_last(); | |
| 118: if ($options !== null) { | |
| >> 119: $safeResult = \mb_ereg_replace_callback($pattern, $callback, $string, $options); | |
| 120: } else { | |
| 121: $safeResult = \mb_ereg_replace_callback($pattern, $callback, $string); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 121: WARNING Function mb_ereg_replace_callback() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_replace_callbackDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 119: $safeResult = \mb_ereg_replace_callback($pattern, $callback, $string, $options); | |
| 120: } else { | |
| >> 121: $safeResult = \mb_ereg_replace_callback($pattern, $callback, $string); | |
| 122: } | |
| 123: if ($safeResult === false) { | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 143: WARNING Function mb_ereg_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_replaceDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 141: error_clear_last(); | |
| 142: if ($options !== null) { | |
| >> 143: $safeResult = \mb_ereg_replace($pattern, $replacement, $string, $options); | |
| 144: } else { | |
| 145: $safeResult = \mb_ereg_replace($pattern, $replacement, $string); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 145: WARNING Function mb_ereg_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_replaceDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 143: $safeResult = \mb_ereg_replace($pattern, $replacement, $string, $options); | |
| 144: } else { | |
| >> 145: $safeResult = \mb_ereg_replace($pattern, $replacement, $string); | |
| 146: } | |
| 147: if ($safeResult === false) { | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 162: WARNING Function mb_ereg_search_getregs() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_getregsDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 160: { | |
| 161: error_clear_last(); | |
| >> 162: $safeResult = \mb_ereg_search_getregs(); | |
| 163: if ($safeResult === false) { | |
| 164: throw MbstringException::createFromPhpError(); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 181: WARNING Function mb_ereg_search_init() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_initDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 179: error_clear_last(); | |
| 180: if ($options !== null) { | |
| >> 181: $safeResult = \mb_ereg_search_init($string, $pattern, $options); | |
| 182: } elseif ($pattern !== null) { | |
| 183: $safeResult = \mb_ereg_search_init($string, $pattern); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 183: WARNING Function mb_ereg_search_init() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_initDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 181: $safeResult = \mb_ereg_search_init($string, $pattern, $options); | |
| 182: } elseif ($pattern !== null) { | |
| >> 183: $safeResult = \mb_ereg_search_init($string, $pattern); | |
| 184: } else { | |
| 185: $safeResult = \mb_ereg_search_init($string); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 185: WARNING Function mb_ereg_search_init() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_initDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 183: $safeResult = \mb_ereg_search_init($string, $pattern); | |
| 184: } else { | |
| >> 185: $safeResult = \mb_ereg_search_init($string); | |
| 186: } | |
| 187: if ($safeResult === false) { | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 204: WARNING Function mb_ereg_search_regs() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_regsDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 202: error_clear_last(); | |
| 203: if ($options !== null) { | |
| >> 204: $safeResult = \mb_ereg_search_regs($pattern, $options); | |
| 205: } elseif ($pattern !== null) { | |
| 206: $safeResult = \mb_ereg_search_regs($pattern); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 206: WARNING Function mb_ereg_search_regs() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_regsDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 204: $safeResult = \mb_ereg_search_regs($pattern, $options); | |
| 205: } elseif ($pattern !== null) { | |
| >> 206: $safeResult = \mb_ereg_search_regs($pattern); | |
| 207: } else { | |
| 208: $safeResult = \mb_ereg_search_regs(); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 208: WARNING Function mb_ereg_search_regs() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_regsDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 206: $safeResult = \mb_ereg_search_regs($pattern); | |
| 207: } else { | |
| >> 208: $safeResult = \mb_ereg_search_regs(); | |
| 209: } | |
| 210: if ($safeResult === false) { | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 225: WARNING Function mb_ereg_search_setpos() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_search_setposDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 223: { | |
| 224: error_clear_last(); | |
| >> 225: $safeResult = \mb_ereg_search_setpos($offset); | |
| 226: if ($safeResult === false) { | |
| 227: throw MbstringException::createFromPhpError(); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 245: WARNING Function mb_eregi_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_eregi_replaceDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 243: error_clear_last(); | |
| 244: if ($options !== null) { | |
| >> 245: $safeResult = \mb_eregi_replace($pattern, $replacement, $string, $options); | |
| 246: } else { | |
| 247: $safeResult = \mb_eregi_replace($pattern, $replacement, $string); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 247: WARNING Function mb_eregi_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_eregi_replaceDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 245: $safeResult = \mb_eregi_replace($pattern, $replacement, $string, $options); | |
| 246: } else { | |
| >> 247: $safeResult = \mb_eregi_replace($pattern, $replacement, $string); | |
| 248: } | |
| 249: if ($safeResult === false) { | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 363: WARNING Function mb_regex_encoding() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_regex_encodingDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 361: error_clear_last(); | |
| 362: if ($encoding !== null) { | |
| >> 363: $safeResult = \mb_regex_encoding($encoding); | |
| 364: } else { | |
| 365: $safeResult = \mb_regex_encoding(); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 365: WARNING Function mb_regex_encoding() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_regex_encodingDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 363: $safeResult = \mb_regex_encoding($encoding); | |
| 364: } else { | |
| >> 365: $safeResult = \mb_regex_encoding(); | |
| 366: } | |
| 367: if ($safeResult === false) { | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 408: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 406: { | |
| 407: error_clear_last(); | |
| >> 408: $safeResult = \mb_split($pattern, $string, $limit); | |
| 409: if ($safeResult === false) { | |
| 410: throw MbstringException::createFromPhpError(); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: twig\extensions--v1.5.4\lib\Twig\Extensions\Extension\Text.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 60: WARNING Function mb_regex_encoding() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_regex_encodingDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 58: $sentences = array(); | |
| 59: | |
| >> 60: $previous = mb_regex_encoding(); | |
| 61: mb_regex_encoding($env->getCharset()); | |
| 62: | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 61: WARNING Function mb_regex_encoding() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_regex_encodingDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 59: | |
| 60: $previous = mb_regex_encoding(); | |
| >> 61: mb_regex_encoding($env->getCharset()); | |
| 62: | |
| 63: $pieces = mb_split($separator, $value); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 63: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 61: mb_regex_encoding($env->getCharset()); | |
| 62: | |
| >> 63: $pieces = mb_split($separator, $value); | |
| 64: mb_regex_encoding($previous); | |
| 65: | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 64: WARNING Function mb_regex_encoding() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_regex_encodingDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 62: | |
| 63: $pieces = mb_split($separator, $value); | |
| >> 64: mb_regex_encoding($previous); | |
| 65: | |
| 66: foreach ($pieces as $piece) { | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FILE: vipnytt\sitemapparser--v1.3.1\src\SitemapParser.php | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| FOUND 0 ERRORS AND 4 WARNINGS AFFECTING 4 LINES | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 268: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| 266: { | |
| 267: // Split lines into array | |
| >> 268: $lines = array_filter(array_map('trim', mb_split('\r\n|\n|\r', $robotstxt))); | |
| 269: // Parse each line individually | |
| 270: foreach ($lines as $line) { | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 272: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| 270: foreach ($lines as $line) { | |
| 271: // Remove comments | |
| >> 272: $line = mb_split('#', $line, 2)[0]; | |
| 273: // Split by directive and rule | |
| 274: $pair = array_map('trim', mb_split(':', $line, 2)); | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 274: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| 272: $line = mb_split('#', $line, 2)[0]; | |
| 273: // Split by directive and rule | |
| >> 274: $pair = array_map('trim', mb_split(':', $line, 2)); | |
| 275: // Check if the line contains a sitemap | |
| 276: if ( | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| LINE 366: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| 364: return false; | |
| 365: } | |
| >> 366: $array = array_filter(array_map('trim', mb_split('\r\n|\n|\r', $string))); | |
| 367: foreach ($array as $line) { | |
| 368: if ($this->isSitemapURL($line)) { | |
| ------------------------------------------------------------------------------------------------------------------------------------- | |
| FILE: voku\portable-utf8--6.0.13\src\voku\helper\UTF8.php | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| FOUND 0 ERRORS AND 19 WARNINGS AFFECTING 19 LINES | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 536: WARNING Function mb_regex_encoding() is deprecated since PHP 8.6 | |
| (PHPCompatibility.FunctionUse.RemovedFunctions.mb_regex_encodingDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 534: if (self::$SUPPORT['mbstring'] === true) { | |
| 535: \mb_internal_encoding('UTF-8'); | |
| >> 536: \mb_regex_encoding('UTF-8'); | |
| 537: self::$SUPPORT['mbstring_internal_encoding'] = 'UTF-8'; | |
| 538: } | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 1067: WARNING Function mb_ereg_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_replaceDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 1065: { | |
| 1066: if (self::$SUPPORT['mbstring'] === true) { | |
| >> 1067: return \trim((string) \mb_ereg_replace('[[:space:]]+', ' ', $str)); | |
| 1068: } | |
| 1069: | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 2779: WARNING Function mb_ereg_match() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_matchDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 2777: { | |
| 2778: if (self::$SUPPORT['mbstring'] === true) { | |
| >> 2779: return \mb_ereg_match('.*[[:lower:]]', $str); | |
| 2780: } | |
| 2781: | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 2798: WARNING Function mb_ereg_match() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_matchDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 2796: { | |
| 2797: if (self::$SUPPORT['mbstring'] === true) { | |
| >> 2798: return \mb_ereg_match('.*[[:space:]]', $str); | |
| 2799: } | |
| 2800: | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 2817: WARNING Function mb_ereg_match() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_matchDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 2815: { | |
| 2816: if (self::$SUPPORT['mbstring'] === true) { | |
| >> 2817: return \mb_ereg_match('.*[[:upper:]]', $str); | |
| 2818: } | |
| 2819: | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 3484: WARNING Function mb_ereg_match() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_matchDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 3482: { | |
| 3483: if (self::$SUPPORT['mbstring'] === true) { | |
| >> 3484: return \mb_ereg_match('^[[:alpha:]]*$', $str); | |
| 3485: } | |
| 3486: | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 3503: WARNING Function mb_ereg_match() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_matchDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 3501: { | |
| 3502: if (self::$SUPPORT['mbstring'] === true) { | |
| >> 3503: return \mb_ereg_match('^[[:alnum:]]*$', $str); | |
| 3504: } | |
| 3505: | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 3685: WARNING Function mb_ereg_match() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_matchDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 3683: { | |
| 3684: if (self::$SUPPORT['mbstring'] === true) { | |
| >> 3685: return \mb_ereg_match('^[[:space:]]*$', $str); | |
| 3686: } | |
| 3687: | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 3748: WARNING Function mb_ereg_match() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_matchDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 3746: { | |
| 3747: if (self::$SUPPORT['mbstring'] === true) { | |
| >> 3748: return \mb_ereg_match('^[[:xdigit:]]*$', $str); | |
| 3749: } | |
| 3750: | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 3885: WARNING Function mb_ereg_match() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_matchDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 3883: { | |
| 3884: if (self::$SUPPORT['mbstring'] === true) { | |
| >> 3885: return \mb_ereg_match('^[[:lower:]]*$', $str); | |
| 3886: } | |
| 3887: | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 3928: WARNING Function mb_ereg_match() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_matchDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 3926: { | |
| 3927: if (self::$SUPPORT['mbstring'] === true) { | |
| >> 3928: return \mb_ereg_match('^[[:upper:]]*$', $str); | |
| 3929: } | |
| 3930: | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 4459: WARNING Function mb_ereg_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_replaceDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 4457: } | |
| 4458: | |
| >> 4459: return (string) \mb_ereg_replace($pattern, '', $str); | |
| 4460: } | |
| 4461: | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 5640: WARNING Function mb_ereg_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_replaceDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 5638: } | |
| 5639: | |
| >> 5640: return (string) \mb_ereg_replace($pattern, '', $str); | |
| 5641: } | |
| 5642: | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 6031: WARNING Function mb_ereg_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_replaceDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 6029: ): string { | |
| 6030: if (self::$SUPPORT['mbstring'] === true) { | |
| >> 6031: $str = (string) \mb_ereg_replace('\\B(\\p{Lu})', '-\1', \trim($str)); | |
| 6032: | |
| 6033: $use_mb_functions = $lang === null && !$try_to_keep_the_string_length; | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 6040: WARNING Function mb_ereg_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_replaceDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 6038: } | |
| 6039: | |
| >> 6040: return (string) \mb_ereg_replace('[\\-_\\s]+', $delimiter, $str); | |
| 6041: } | |
| 6042: | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 8276: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 8274: if (self::$SUPPORT['mbstring'] === true) { | |
| 8275: if ($limit >= 0) { | |
| >> 8276: $result_tmp = \mb_split($pattern, $str); | |
| 8277: if ($result_tmp === false) { | |
| 8278: return []; | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 8294: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 8292: } | |
| 8293: | |
| >> 8294: $result = \mb_split($pattern, $str); | |
| 8295: if ($result === false) { | |
| 8296: return []; | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 9071: WARNING Function mb_split() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_splitDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 9069: | |
| 9070: if (self::$SUPPORT['mbstring'] === true) { | |
| >> 9071: $return = \mb_split("[\r\n]{1,2}", $str); | |
| 9072: } else { | |
| 9073: $return = \preg_split("/[\r\n]{1,2}/u", $str); | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| LINE 12999: WARNING Function mb_ereg_replace() is deprecated since PHP 8.6 (PHPCompatibility.FunctionUse.RemovedFunctions.mb_ereg_replaceDeprecated) | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | |
| 12997: } | |
| 12998: | |
| >> 12999: return (string) \mb_ereg_replace($pattern, '', $str); | |
| 13000: } | |
| 13001: | |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment