Changeset 3265371
- Timestamp:
- 04/02/2025 01:54:50 AM (12 months ago)
- Location:
- full-text-search
- Files:
-
- 12 added
- 44 edited
- 1 copied
-
tags/2.14.7 (copied) (copied from full-text-search/trunk)
-
tags/2.14.7/full-text-search.php (modified) (2 diffs)
-
tags/2.14.7/readme.txt (modified) (2 diffs)
-
tags/2.14.7/vendor/composer/InstalledVersions.php (modified) (5 diffs)
-
tags/2.14.7/vendor/composer/installed.json (modified) (8 diffs)
-
tags/2.14.7/vendor/composer/installed.php (modified) (4 diffs)
-
tags/2.14.7/vendor/composer/jetpack_autoload_classmap.php (modified) (1 diff)
-
tags/2.14.7/vendor/composer/jetpack_autoload_filemap.php (modified) (1 diff)
-
tags/2.14.7/vendor/composer/jetpack_autoload_psr4.php (modified) (1 diff)
-
tags/2.14.7/vendor/composer/platform_check.php (modified) (1 diff)
-
tags/2.14.7/vendor/smalot/pdfparser/.github/ISSUE_TEMPLATE/incorrect-parsing.md (modified) (1 diff)
-
tags/2.14.7/vendor/smalot/pdfparser/.github/pull_request_template.md (modified) (1 diff)
-
tags/2.14.7/vendor/smalot/pdfparser/.github/workflows/continuous-integration.yml (modified) (3 diffs)
-
tags/2.14.7/vendor/smalot/pdfparser/.php-cs-fixer.php (modified) (1 diff)
-
tags/2.14.7/vendor/smalot/pdfparser/CONTRIBUTING.md (added)
-
tags/2.14.7/vendor/smalot/pdfparser/phpunit-windows.xml (modified) (1 diff)
-
tags/2.14.7/vendor/smalot/pdfparser/src/Smalot/PdfParser/Document.php (modified) (4 diffs)
-
tags/2.14.7/vendor/smalot/pdfparser/src/Smalot/PdfParser/Exception/EmptyPdfException.php (added)
-
tags/2.14.7/vendor/smalot/pdfparser/src/Smalot/PdfParser/Exception/InvalidDictionaryObjectException.php (added)
-
tags/2.14.7/vendor/smalot/pdfparser/src/Smalot/PdfParser/Exception/MissingCatalogException.php (added)
-
tags/2.14.7/vendor/smalot/pdfparser/src/Smalot/PdfParser/Exception/MissingPdfHeaderException.php (added)
-
tags/2.14.7/vendor/smalot/pdfparser/src/Smalot/PdfParser/Exception/NotImplementedException.php (added)
-
tags/2.14.7/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font.php (modified) (3 diffs)
-
tags/2.14.7/vendor/smalot/pdfparser/src/Smalot/PdfParser/PDFObject.php (modified) (4 diffs)
-
tags/2.14.7/vendor/smalot/pdfparser/src/Smalot/PdfParser/RawData/FilterHelper.php (modified) (3 diffs)
-
tags/2.14.7/vendor/smalot/pdfparser/src/Smalot/PdfParser/RawData/RawDataParser.php (modified) (6 diffs)
-
tags/2.14.7/vendor/symfony/polyfill-mbstring/Mbstring.php (modified) (5 diffs)
-
tags/2.14.7/vendor/symfony/polyfill-mbstring/bootstrap.php (modified) (1 diff)
-
tags/2.14.7/vendor/symfony/polyfill-mbstring/bootstrap80.php (modified) (2 diffs)
-
trunk/full-text-search.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/vendor/composer/InstalledVersions.php (modified) (5 diffs)
-
trunk/vendor/composer/installed.json (modified) (8 diffs)
-
trunk/vendor/composer/installed.php (modified) (4 diffs)
-
trunk/vendor/composer/jetpack_autoload_classmap.php (modified) (1 diff)
-
trunk/vendor/composer/jetpack_autoload_filemap.php (modified) (1 diff)
-
trunk/vendor/composer/jetpack_autoload_psr4.php (modified) (1 diff)
-
trunk/vendor/composer/platform_check.php (modified) (1 diff)
-
trunk/vendor/smalot/pdfparser/.github/ISSUE_TEMPLATE/incorrect-parsing.md (modified) (1 diff)
-
trunk/vendor/smalot/pdfparser/.github/pull_request_template.md (modified) (1 diff)
-
trunk/vendor/smalot/pdfparser/.github/workflows/continuous-integration.yml (modified) (3 diffs)
-
trunk/vendor/smalot/pdfparser/.php-cs-fixer.php (modified) (1 diff)
-
trunk/vendor/smalot/pdfparser/CONTRIBUTING.md (added)
-
trunk/vendor/smalot/pdfparser/phpunit-windows.xml (modified) (1 diff)
-
trunk/vendor/smalot/pdfparser/src/Smalot/PdfParser/Document.php (modified) (4 diffs)
-
trunk/vendor/smalot/pdfparser/src/Smalot/PdfParser/Exception/EmptyPdfException.php (added)
-
trunk/vendor/smalot/pdfparser/src/Smalot/PdfParser/Exception/InvalidDictionaryObjectException.php (added)
-
trunk/vendor/smalot/pdfparser/src/Smalot/PdfParser/Exception/MissingCatalogException.php (added)
-
trunk/vendor/smalot/pdfparser/src/Smalot/PdfParser/Exception/MissingPdfHeaderException.php (added)
-
trunk/vendor/smalot/pdfparser/src/Smalot/PdfParser/Exception/NotImplementedException.php (added)
-
trunk/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font.php (modified) (3 diffs)
-
trunk/vendor/smalot/pdfparser/src/Smalot/PdfParser/PDFObject.php (modified) (4 diffs)
-
trunk/vendor/smalot/pdfparser/src/Smalot/PdfParser/RawData/FilterHelper.php (modified) (3 diffs)
-
trunk/vendor/smalot/pdfparser/src/Smalot/PdfParser/RawData/RawDataParser.php (modified) (6 diffs)
-
trunk/vendor/symfony/polyfill-mbstring/Mbstring.php (modified) (5 diffs)
-
trunk/vendor/symfony/polyfill-mbstring/bootstrap.php (modified) (1 diff)
-
trunk/vendor/symfony/polyfill-mbstring/bootstrap80.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
full-text-search/tags/2.14.7/full-text-search.php
r3138583 r3265371 11 11 * Plugin URI: https://xakuro.com/wordpress/ 12 12 * Description: Replaces site search with full-text search. 13 * Version: 2.14. 613 * Version: 2.14.7 14 14 * Requires at least: 5.5 15 15 * Requires PHP: 7.2 … … 25 25 } 26 26 27 define( 'FULL_TEXT_SEARCH_VERSION', '2.14. 6' );27 define( 'FULL_TEXT_SEARCH_VERSION', '2.14.7' ); 28 28 29 29 require_once __DIR__ . '/main.php'; -
full-text-search/tags/2.14.7/readme.txt
r3138583 r3265371 3 3 Tags: full-text search,full-text,search,fulltext,mroonga 4 4 Requires at least: 5.5 5 Tested up to: 6. 65 Tested up to: 6.7 6 6 Requires PHP: 7.2 7 Stable tag: 2.14. 67 Stable tag: 2.14.7 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 52 52 53 53 == Changelog == 54 55 = 2.14.7 = 56 57 * Supported WordPress version 6.7. 58 * Updated PDF Parser library to 2.12.0. 54 59 55 60 = 2.14.6 = -
full-text-search/tags/2.14.7/vendor/composer/InstalledVersions.php
r2903276 r3265371 32 32 */ 33 33 private static $installed; 34 35 /** 36 * @var bool 37 */ 38 private static $installedIsLocalDir; 34 39 35 40 /** … … 310 315 self::$installed = $data; 311 316 self::$installedByVendor = array(); 317 318 // when using reload, we disable the duplicate protection to ensure that self::$installed data is 319 // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not, 320 // so we have to assume it does not, and that may result in duplicate data being returned when listing 321 // all installed packages for example 322 self::$installedIsLocalDir = false; 312 323 } 313 324 … … 323 334 324 335 $installed = array(); 336 $copiedLocalDir = false; 325 337 326 338 if (self::$canGetVendors) { 339 $selfDir = strtr(__DIR__, '\\', '/'); 327 340 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 341 $vendorDir = strtr($vendorDir, '\\', '/'); 328 342 if (isset(self::$installedByVendor[$vendorDir])) { 329 343 $installed[] = self::$installedByVendor[$vendorDir]; … … 331 345 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 346 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 335 self::$installed = $installed[count($installed) - 1]; 347 self::$installedByVendor[$vendorDir] = $required; 348 $installed[] = $required; 349 if (self::$installed === null && $vendorDir.'/composer' === $selfDir) { 350 self::$installed = $required; 351 self::$installedIsLocalDir = true; 336 352 } 353 } 354 if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) { 355 $copiedLocalDir = true; 337 356 } 338 357 } … … 351 370 } 352 371 353 if (self::$installed !== array() ) {372 if (self::$installed !== array() && !$copiedLocalDir) { 354 373 $installed[] = self::$installed; 355 374 } -
full-text-search/tags/2.14.7/vendor/composer/installed.json
r3138583 r3265371 26 26 "type": "composer-plugin", 27 27 "extra": { 28 "class": "Automattic\\Jetpack\\Autoloader\\CustomAutoloaderPlugin", 28 29 "autotagger": true, 29 "class": "Automattic\\Jetpack\\Autoloader\\CustomAutoloaderPlugin",30 30 "mirror-repo": "Automattic/jetpack-autoloader", 31 "branch-alias": { 32 "dev-trunk": "2.12.x-dev" 33 }, 31 34 "changelogger": { 32 35 "link-template": "https://github.com/Automattic/jetpack-autoloader/compare/v${old}...v${new}" … … 34 37 "version-constants": { 35 38 "::VERSION": "src/AutoloadGenerator.php" 36 },37 "branch-alias": {38 "dev-trunk": "2.12.x-dev"39 39 } 40 40 }, … … 68 68 { 69 69 "name": "smalot/pdfparser", 70 "version": "v2.1 1.0",71 "version_normalized": "2.1 1.0.0",70 "version": "v2.12.0", 71 "version_normalized": "2.12.0.0", 72 72 "source": { 73 73 "type": "git", 74 74 "url": "https://github.com/smalot/pdfparser.git", 75 "reference": " ac8e6678b0940e4b2ccd5caadd3fb18e68093be6"75 "reference": "8440edbf58c8596074e78ada38dcb0bd041a5948" 76 76 }, 77 77 "dist": { 78 78 "type": "zip", 79 "url": "https://api.github.com/repos/smalot/pdfparser/zipball/ ac8e6678b0940e4b2ccd5caadd3fb18e68093be6",80 "reference": " ac8e6678b0940e4b2ccd5caadd3fb18e68093be6",79 "url": "https://api.github.com/repos/smalot/pdfparser/zipball/8440edbf58c8596074e78ada38dcb0bd041a5948", 80 "reference": "8440edbf58c8596074e78ada38dcb0bd041a5948", 81 81 "shasum": "" 82 82 }, … … 87 87 "symfony/polyfill-mbstring": "^1.18" 88 88 }, 89 "time": "202 4-08-16T06:48:03+00:00",89 "time": "2025-03-31T13:16:09+00:00", 90 90 "type": "library", 91 91 "installation-source": "dist", … … 116 116 "support": { 117 117 "issues": "https://github.com/smalot/pdfparser/issues", 118 "source": "https://github.com/smalot/pdfparser/tree/v2.1 1.0"118 "source": "https://github.com/smalot/pdfparser/tree/v2.12.0" 119 119 }, 120 120 "install-path": "../smalot/pdfparser" … … 122 122 { 123 123 "name": "symfony/polyfill-mbstring", 124 "version": "v1.3 0.0",125 "version_normalized": "1.3 0.0.0",124 "version": "v1.31.0", 125 "version_normalized": "1.31.0.0", 126 126 "source": { 127 127 "type": "git", 128 128 "url": "https://github.com/symfony/polyfill-mbstring.git", 129 "reference": " fd22ab50000ef01661e2a31d850ebaa297f8e03c"129 "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341" 130 130 }, 131 131 "dist": { 132 132 "type": "zip", 133 "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/ fd22ab50000ef01661e2a31d850ebaa297f8e03c",134 "reference": " fd22ab50000ef01661e2a31d850ebaa297f8e03c",133 "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/85181ba99b2345b0ef10ce42ecac37612d9fd341", 134 "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341", 135 135 "shasum": "" 136 136 }, 137 137 "require": { 138 "php": ">=7. 1"138 "php": ">=7.2" 139 139 }, 140 140 "provide": { … … 144 144 "ext-mbstring": "For best performance" 145 145 }, 146 "time": "2024-0 6-19T12:30:46+00:00",146 "time": "2024-09-09T11:45:10+00:00", 147 147 "type": "library", 148 148 "extra": { 149 149 "thanks": { 150 " name": "symfony/polyfill",151 " url": "https://github.com/symfony/polyfill"150 "url": "https://github.com/symfony/polyfill", 151 "name": "symfony/polyfill" 152 152 } 153 153 }, … … 185 185 ], 186 186 "support": { 187 "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.3 0.0"187 "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.31.0" 188 188 }, 189 189 "funding": [ -
full-text-search/tags/2.14.7/vendor/composer/installed.php
r3138583 r3265371 2 2 'root' => array( 3 3 'name' => '__root__', 4 'pretty_version' => 'v2.14. 6',5 'version' => '2.14. 6.0',6 'reference' => ' dd1bbe276c4c0cfd4455bfe3321fb7dcf40539fc',4 'pretty_version' => 'v2.14.7', 5 'version' => '2.14.7.0', 6 'reference' => '30407d34ff04ea8e5b61094bb55465671dca208b', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 '__root__' => array( 14 'pretty_version' => 'v2.14. 6',15 'version' => '2.14. 6.0',16 'reference' => ' dd1bbe276c4c0cfd4455bfe3321fb7dcf40539fc',14 'pretty_version' => 'v2.14.7', 15 'version' => '2.14.7.0', 16 'reference' => '30407d34ff04ea8e5b61094bb55465671dca208b', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', … … 30 30 ), 31 31 'smalot/pdfparser' => array( 32 'pretty_version' => 'v2.1 1.0',33 'version' => '2.1 1.0.0',34 'reference' => ' ac8e6678b0940e4b2ccd5caadd3fb18e68093be6',32 'pretty_version' => 'v2.12.0', 33 'version' => '2.12.0.0', 34 'reference' => '8440edbf58c8596074e78ada38dcb0bd041a5948', 35 35 'type' => 'library', 36 36 'install_path' => __DIR__ . '/../smalot/pdfparser', … … 39 39 ), 40 40 'symfony/polyfill-mbstring' => array( 41 'pretty_version' => 'v1.3 0.0',42 'version' => '1.3 0.0.0',43 'reference' => ' fd22ab50000ef01661e2a31d850ebaa297f8e03c',41 'pretty_version' => 'v1.31.0', 42 'version' => '1.31.0.0', 43 'reference' => '85181ba99b2345b0ef10ce42ecac37612d9fd341', 44 44 'type' => 'library', 45 45 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring', -
full-text-search/tags/2.14.7/vendor/composer/jetpack_autoload_classmap.php
r3138583 r3265371 12 12 ), 13 13 'Smalot\\PdfParser\\Config' => array( 14 'version' => '2.1 1.0.0',14 'version' => '2.12.0.0', 15 15 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Config.php' 16 16 ), 17 17 'Smalot\\PdfParser\\Document' => array( 18 'version' => '2.1 1.0.0',18 'version' => '2.12.0.0', 19 19 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Document.php' 20 20 ), 21 21 'Smalot\\PdfParser\\Element' => array( 22 'version' => '2.1 1.0.0',22 'version' => '2.12.0.0', 23 23 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element.php' 24 24 ), 25 25 'Smalot\\PdfParser\\Element\\ElementArray' => array( 26 'version' => '2.1 1.0.0',26 'version' => '2.12.0.0', 27 27 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementArray.php' 28 28 ), 29 29 'Smalot\\PdfParser\\Element\\ElementBoolean' => array( 30 'version' => '2.1 1.0.0',30 'version' => '2.12.0.0', 31 31 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementBoolean.php' 32 32 ), 33 33 'Smalot\\PdfParser\\Element\\ElementDate' => array( 34 'version' => '2.1 1.0.0',34 'version' => '2.12.0.0', 35 35 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementDate.php' 36 36 ), 37 37 'Smalot\\PdfParser\\Element\\ElementHexa' => array( 38 'version' => '2.1 1.0.0',38 'version' => '2.12.0.0', 39 39 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementHexa.php' 40 40 ), 41 41 'Smalot\\PdfParser\\Element\\ElementMissing' => array( 42 'version' => '2.1 1.0.0',42 'version' => '2.12.0.0', 43 43 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementMissing.php' 44 44 ), 45 45 'Smalot\\PdfParser\\Element\\ElementName' => array( 46 'version' => '2.1 1.0.0',46 'version' => '2.12.0.0', 47 47 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementName.php' 48 48 ), 49 49 'Smalot\\PdfParser\\Element\\ElementNull' => array( 50 'version' => '2.1 1.0.0',50 'version' => '2.12.0.0', 51 51 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementNull.php' 52 52 ), 53 53 'Smalot\\PdfParser\\Element\\ElementNumeric' => array( 54 'version' => '2.1 1.0.0',54 'version' => '2.12.0.0', 55 55 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementNumeric.php' 56 56 ), 57 57 'Smalot\\PdfParser\\Element\\ElementString' => array( 58 'version' => '2.1 1.0.0',58 'version' => '2.12.0.0', 59 59 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementString.php' 60 60 ), 61 61 'Smalot\\PdfParser\\Element\\ElementStruct' => array( 62 'version' => '2.1 1.0.0',62 'version' => '2.12.0.0', 63 63 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementStruct.php' 64 64 ), 65 65 'Smalot\\PdfParser\\Element\\ElementXRef' => array( 66 'version' => '2.1 1.0.0',66 'version' => '2.12.0.0', 67 67 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementXRef.php' 68 68 ), 69 69 'Smalot\\PdfParser\\Encoding' => array( 70 'version' => '2.1 1.0.0',70 'version' => '2.12.0.0', 71 71 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding.php' 72 72 ), 73 73 'Smalot\\PdfParser\\Encoding\\AbstractEncoding' => array( 74 'version' => '2.1 1.0.0',74 'version' => '2.12.0.0', 75 75 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/AbstractEncoding.php' 76 76 ), 77 77 'Smalot\\PdfParser\\Encoding\\EncodingLocator' => array( 78 'version' => '2.1 1.0.0',78 'version' => '2.12.0.0', 79 79 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/EncodingLocator.php' 80 80 ), 81 81 'Smalot\\PdfParser\\Encoding\\ISOLatin1Encoding' => array( 82 'version' => '2.1 1.0.0',82 'version' => '2.12.0.0', 83 83 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/ISOLatin1Encoding.php' 84 84 ), 85 85 'Smalot\\PdfParser\\Encoding\\ISOLatin9Encoding' => array( 86 'version' => '2.1 1.0.0',86 'version' => '2.12.0.0', 87 87 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/ISOLatin9Encoding.php' 88 88 ), 89 89 'Smalot\\PdfParser\\Encoding\\MacRomanEncoding' => array( 90 'version' => '2.1 1.0.0',90 'version' => '2.12.0.0', 91 91 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/MacRomanEncoding.php' 92 92 ), 93 93 'Smalot\\PdfParser\\Encoding\\PDFDocEncoding' => array( 94 'version' => '2.1 1.0.0',94 'version' => '2.12.0.0', 95 95 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/PDFDocEncoding.php' 96 96 ), 97 97 'Smalot\\PdfParser\\Encoding\\PostScriptGlyphs' => array( 98 'version' => '2.1 1.0.0',98 'version' => '2.12.0.0', 99 99 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/PostScriptGlyphs.php' 100 100 ), 101 101 'Smalot\\PdfParser\\Encoding\\StandardEncoding' => array( 102 'version' => '2.1 1.0.0',102 'version' => '2.12.0.0', 103 103 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/StandardEncoding.php' 104 104 ), 105 105 'Smalot\\PdfParser\\Encoding\\WinAnsiEncoding' => array( 106 'version' => '2.1 1.0.0',106 'version' => '2.12.0.0', 107 107 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/WinAnsiEncoding.php' 108 108 ), 109 'Smalot\\PdfParser\\Exception\\EmptyPdfException' => array( 110 'version' => '2.12.0.0', 111 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Exception/EmptyPdfException.php' 112 ), 109 113 'Smalot\\PdfParser\\Exception\\EncodingNotFoundException' => array( 110 'version' => '2.1 1.0.0',114 'version' => '2.12.0.0', 111 115 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Exception/EncodingNotFoundException.php' 112 116 ), 117 'Smalot\\PdfParser\\Exception\\InvalidDictionaryObjectException' => array( 118 'version' => '2.12.0.0', 119 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Exception/InvalidDictionaryObjectException.php' 120 ), 121 'Smalot\\PdfParser\\Exception\\MissingCatalogException' => array( 122 'version' => '2.12.0.0', 123 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Exception/MissingCatalogException.php' 124 ), 125 'Smalot\\PdfParser\\Exception\\MissingPdfHeaderException' => array( 126 'version' => '2.12.0.0', 127 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Exception/MissingPdfHeaderException.php' 128 ), 129 'Smalot\\PdfParser\\Exception\\NotImplementedException' => array( 130 'version' => '2.12.0.0', 131 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Exception/NotImplementedException.php' 132 ), 113 133 'Smalot\\PdfParser\\Font' => array( 114 'version' => '2.1 1.0.0',134 'version' => '2.12.0.0', 115 135 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Font.php' 116 136 ), 117 137 'Smalot\\PdfParser\\Font\\FontCIDFontType0' => array( 118 'version' => '2.1 1.0.0',138 'version' => '2.12.0.0', 119 139 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Font/FontCIDFontType0.php' 120 140 ), 121 141 'Smalot\\PdfParser\\Font\\FontCIDFontType2' => array( 122 'version' => '2.1 1.0.0',142 'version' => '2.12.0.0', 123 143 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Font/FontCIDFontType2.php' 124 144 ), 125 145 'Smalot\\PdfParser\\Font\\FontTrueType' => array( 126 'version' => '2.1 1.0.0',146 'version' => '2.12.0.0', 127 147 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Font/FontTrueType.php' 128 148 ), 129 149 'Smalot\\PdfParser\\Font\\FontType0' => array( 130 'version' => '2.1 1.0.0',150 'version' => '2.12.0.0', 131 151 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Font/FontType0.php' 132 152 ), 133 153 'Smalot\\PdfParser\\Font\\FontType1' => array( 134 'version' => '2.1 1.0.0',154 'version' => '2.12.0.0', 135 155 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Font/FontType1.php' 136 156 ), 137 157 'Smalot\\PdfParser\\Font\\FontType3' => array( 138 'version' => '2.1 1.0.0',158 'version' => '2.12.0.0', 139 159 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Font/FontType3.php' 140 160 ), 141 161 'Smalot\\PdfParser\\Header' => array( 142 'version' => '2.1 1.0.0',162 'version' => '2.12.0.0', 143 163 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Header.php' 144 164 ), 145 165 'Smalot\\PdfParser\\PDFObject' => array( 146 'version' => '2.1 1.0.0',166 'version' => '2.12.0.0', 147 167 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/PDFObject.php' 148 168 ), 149 169 'Smalot\\PdfParser\\Page' => array( 150 'version' => '2.1 1.0.0',170 'version' => '2.12.0.0', 151 171 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Page.php' 152 172 ), 153 173 'Smalot\\PdfParser\\Pages' => array( 154 'version' => '2.1 1.0.0',174 'version' => '2.12.0.0', 155 175 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Pages.php' 156 176 ), 157 177 'Smalot\\PdfParser\\Parser' => array( 158 'version' => '2.1 1.0.0',178 'version' => '2.12.0.0', 159 179 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Parser.php' 160 180 ), 161 181 'Smalot\\PdfParser\\RawData\\FilterHelper' => array( 162 'version' => '2.1 1.0.0',182 'version' => '2.12.0.0', 163 183 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/RawData/FilterHelper.php' 164 184 ), 165 185 'Smalot\\PdfParser\\RawData\\RawDataParser' => array( 166 'version' => '2.1 1.0.0',186 'version' => '2.12.0.0', 167 187 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/RawData/RawDataParser.php' 168 188 ), 169 189 'Smalot\\PdfParser\\XObject\\Form' => array( 170 'version' => '2.1 1.0.0',190 'version' => '2.12.0.0', 171 191 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/XObject/Form.php' 172 192 ), 173 193 'Smalot\\PdfParser\\XObject\\Image' => array( 174 'version' => '2.1 1.0.0',194 'version' => '2.12.0.0', 175 195 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/XObject/Image.php' 176 196 ), -
full-text-search/tags/2.14.7/vendor/composer/jetpack_autoload_filemap.php
r3138583 r3265371 8 8 return array( 9 9 '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => array( 10 'version' => '1.3 0.0.0',10 'version' => '1.31.0.0', 11 11 'path' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php' 12 12 ), -
full-text-search/tags/2.14.7/vendor/composer/jetpack_autoload_psr4.php
r3138583 r3265371 8 8 return array( 9 9 'Symfony\\Polyfill\\Mbstring\\' => array( 10 'version' => '1.3 0.0.0',10 'version' => '1.31.0.0', 11 11 'path' => array( $vendorDir . '/symfony/polyfill-mbstring' ) 12 12 ), -
full-text-search/tags/2.14.7/vendor/composer/platform_check.php
r2773119 r3265371 5 5 $issues = array(); 6 6 7 if (!(PHP_VERSION_ID >= 70 100)) {8 $issues[] = 'Your Composer dependencies require a PHP version ">= 7. 1.0". You are running ' . PHP_VERSION . '.';7 if (!(PHP_VERSION_ID >= 70200)) { 8 $issues[] = 'Your Composer dependencies require a PHP version ">= 7.2.0". You are running ' . PHP_VERSION . '.'; 9 9 } 10 10 -
full-text-search/tags/2.14.7/vendor/smalot/pdfparser/.github/ISSUE_TEMPLATE/incorrect-parsing.md
r2773119 r3265371 9 9 10 10 <!-- DO NOT THROW THIS AWAY --> 11 <!-- Fill out the FULL versions with patch versions -->11 <!-- Fill out the FULL versions with patch versions (e.g. 2.10.0) --> 12 12 13 - PHP Version: 14 - PDFParser Version: 13 - PHP Version: 14 - PDFParser Version: 15 15 16 16 ### Description: -
full-text-search/tags/2.14.7/vendor/smalot/pdfparser/.github/pull_request_template.md
r3021053 r3265371 12 12 # Checklist for code / configuration changes 13 13 14 *In case you changed the code/configuration, please read each of the following checkboxes as they contain valuable information:* 15 16 * [ ] Please add at least **one test case** (unit test, system test, ...) to demonstrate that the change is working. If existing code was changed, your tests cover these code parts as well. 17 By the way, you don't have to provide a full fledged PDF file to demonstrate a fix. Instead a unit test may be sufficient sometimes, 18 please have a look at [FontTest](https://github.com/smalot/pdfparser/blob/master/tests/PHPUnit/Unit/FontTest.php#L40) for example code. 19 Code changes without any tests are likely to be rejected. If you dont know how to write tests, no problem, tell us upfront and we may add them ourselves or discuss other ways. 20 * [ ] Please run **PHP-CS-Fixer** before committing, to confirm with our coding styles. See https://github.com/smalot/pdfparser/blob/master/.php-cs-fixer.php for more information about our coding styles. 21 * [ ] In case you **fix an existing issue**, please do one of the following: 22 * [ ] Write in this text something like `fixes #1234` to outline that you are providing a fix for the issue `#1234`. 23 * [ ] After the pull request was created, you will find on the right side a section called **Development**. There issues can be selected which will be closed after the your pull request got merged. 24 * [ ] In case you changed internal behavior or functionality, please check our documentation to make sure these changes are **documented properly**: https://github.com/smalot/pdfparser/tree/master/doc 25 * [ ] In case you want to discuss new ideas/changes and you are not sure, just create a pull request and mark it as **a draft** 26 (see [here](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests#draft-pull-requests) for more information). 27 This will tell us, that it is not ready for merge, but you want to discuss certain issues. 28 29 <!-- 30 Pull requests will be declined/rejected if one part of the continous integration pipeline fails. 31 We use the pipeline to make sure no regressions are introduced and existing code still runs as expected. 32 --> 14 See [CONTRIBUTING.md](./../CONTRIBUTING.md) for all essential information about contributing. -
full-text-search/tags/2.14.7/vendor/smalot/pdfparser/.github/workflows/continuous-integration.yml
r3138583 r3265371 21 21 - "8.2" 22 22 - "8.3" 23 - "8.4" 23 24 24 25 steps: … … 152 153 - "8.2" 153 154 - "8.3" 155 - "8.4" 154 156 155 157 steps: … … 206 208 fail-fast: true 207 209 matrix: 208 php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]210 php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4'] 209 211 210 212 steps: -
full-text-search/tags/2.14.7/vendor/smalot/pdfparser/.php-cs-fixer.php
r2951448 r3265371 15 15 $config 16 16 ->setFinder($finder) 17 ->setRiskyAllowed(true)18 17 ->setRules([ 19 '@Symfony' => true, 20 '@Symfony:risky' => true, 18 '@PSR12' => true, 21 19 'array_syntax' => ['syntax' => 'short'], 22 20 'no_empty_phpdoc' => true, -
full-text-search/tags/2.14.7/vendor/smalot/pdfparser/phpunit-windows.xml
r2884008 r3265371 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <!-- https://phpunit.de/manual/current/en/appendixes.configuration.html --> 3 <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" backupGlobals="false" bootstrap="vendor\autoload.php" colors="true" processIsolation="false" stopOnFailure="false" cacheDirectory=".phpunit.cache" backupStaticProperties="false" >3 <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" backupGlobals="false" bootstrap="vendor\autoload.php" colors="true" processIsolation="false" stopOnFailure="false" cacheDirectory=".phpunit.cache" backupStaticProperties="false" displayDetailsOnTestsThatTriggerWarnings="true"> 4 4 <coverage> 5 5 <include> -
full-text-search/tags/2.14.7/vendor/smalot/pdfparser/src/Smalot/PdfParser/Document.php
r3138583 r3265371 34 34 35 35 use Smalot\PdfParser\Encoding\PDFDocEncoding; 36 use Smalot\PdfParser\Exception\MissingCatalogException; 36 37 37 38 /** … … 256 257 $metadata[] = $val['value']; 257 258 258 // Else assign a value to this property259 // Else assign a value to this property 259 260 } else { 260 261 $metadata[$val['tag']] = $val['value']; … … 380 381 * @return Page[] 381 382 * 382 * @throws \Exception383 * @throws MissingCatalogException 383 384 */ 384 385 public function getPages() … … 416 417 } 417 418 418 throw new \Exception('Missing catalog.');419 throw new MissingCatalogException('Missing catalog.'); 419 420 } 420 421 -
full-text-search/tags/2.14.7/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font.php
r3138583 r3265371 217 217 if (preg_match_all('/beginbfrange(?P<sections>.*?)endbfrange/s', $content, $matches)) { 218 218 foreach ($matches['sections'] as $section) { 219 // Support for : <srcCode1> <srcCode2> <dstString> 220 $regexp = '/<(?P<from>[0-9A-F]+)> *<(?P<to>[0-9A-F]+)> *<(?P<offset>[0-9A-F]+)>[ \r\n]+/is'; 219 /** 220 * Regexp to capture <from>, <to>, and either <offset> or [...] items. 221 * - (?P<from>...) Source range's start 222 * - (?P<to>...) Source range's end 223 * - (?P<dest>...) Destination range's offset or each char code 224 * Some PDF file has 2-byte Unicode values on new lines > added \r\n 225 */ 226 $regexp = '/<(?P<from>[0-9A-F]+)> *<(?P<to>[0-9A-F]+)> *(?P<dest><[0-9A-F]+>|\[[\r\n<>0-9A-F ]+\])[ \r\n]+/is'; 221 227 222 228 preg_match_all($regexp, $section, $matches); … … 225 231 $char_from = hexdec($from); 226 232 $char_to = hexdec($matches['to'][$key]); 227 $offset = hexdec($matches['offset'][$key]); 228 229 for ($char = $char_from; $char <= $char_to; ++$char) { 230 $this->table[$char] = self::uchr($char - $char_from + $offset); 231 } 232 } 233 234 // Support for : <srcCode1> <srcCodeN> [<dstString1> <dstString2> ... <dstStringN>] 235 // Some PDF file has 2-byte Unicode values on new lines > added \r\n 236 $regexp = '/<(?P<from>[0-9A-F]+)> *<(?P<to>[0-9A-F]+)> *\[(?P<strings>[\r\n<>0-9A-F ]+)\][ \r\n]+/is'; 237 238 preg_match_all($regexp, $section, $matches); 239 240 foreach ($matches['from'] as $key => $from) { 241 $char_from = hexdec($from); 242 $strings = []; 243 244 preg_match_all('/<(?P<string>[0-9A-F]+)> */is', $matches['strings'][$key], $strings); 245 246 foreach ($strings['string'] as $position => $string) { 247 $parts = preg_split( 248 '/([0-9A-F]{4})/i', 249 $string, 250 0, 251 \PREG_SPLIT_NO_EMPTY | \PREG_SPLIT_DELIM_CAPTURE 252 ); 253 $text = ''; 254 foreach ($parts as $part) { 255 $text .= self::uchr(hexdec($part)); 233 $dest = $matches['dest'][$key]; 234 235 if (1 === preg_match('/^<(?P<offset>[0-9A-F]+)>$/i', $dest, $offset_matches)) { 236 // Support for : <srcCode1> <srcCode2> <dstString> 237 $offset = hexdec($offset_matches['offset']); 238 239 for ($char = $char_from; $char <= $char_to; ++$char) { 240 $this->table[$char] = self::uchr($char - $char_from + $offset); 256 241 } 257 $this->table[$char_from + $position] = $text; 242 } else { 243 // Support for : <srcCode1> <srcCodeN> [<dstString1> <dstString2> ... <dstStringN>] 244 $strings = []; 245 $matched = preg_match_all('/<(?P<string>[0-9A-F]+)> */is', $dest, $strings); 246 if (false === $matched || 0 === $matched) { 247 continue; 248 } 249 250 foreach ($strings['string'] as $position => $string) { 251 $parts = preg_split( 252 '/([0-9A-F]{4})/i', 253 $string, 254 0, 255 \PREG_SPLIT_NO_EMPTY | \PREG_SPLIT_DELIM_CAPTURE 256 ); 257 if (false === $parts) { 258 continue; 259 } 260 $text = ''; 261 foreach ($parts as $part) { 262 $text .= self::uchr(hexdec($part)); 263 } 264 $this->table[$char_from + $position] = $text; 265 } 258 266 } 259 267 } … … 288 296 $widths = $details['Widths'] ?? []; 289 297 290 // Widths array is zero indexed but table is not. We must map them based on FirstChar and LastChar 291 $width_map = array_flip(range($details['FirstChar'], $details['LastChar'])); 298 /* 299 * Widths array is zero indexed but table is not. We must map them based on FirstChar and LastChar 300 * 301 * Note: Without the change you would see warnings in PHP 8.4 because the values of FirstChar or LastChar 302 * can be null sometimes. 303 */ 304 $width_map = array_flip(range((int) $details['FirstChar'], (int) $details['LastChar'])); 292 305 293 306 $width = null; -
full-text-search/tags/2.14.7/vendor/smalot/pdfparser/src/Smalot/PdfParser/PDFObject.php
r3138583 r3265371 33 33 namespace Smalot\PdfParser; 34 34 35 use Smalot\PdfParser\Exception\InvalidDictionaryObjectException; 35 36 use Smalot\PdfParser\XObject\Form; 36 37 use Smalot\PdfParser\XObject\Image; … … 452 453 $sections[] = $line; 453 454 454 // If an 'ET' is encountered, unset the $inTextBlock flag455 // If an 'ET' is encountered, unset the $inTextBlock flag 455 456 } elseif ('ET' == $line) { 456 457 $inTextBlock = false; … … 560 561 * @internal 561 562 * 562 * @throws \Exception563 * @throws InvalidDictionaryObjectException 563 564 */ 564 565 public function parseDictionary(string $dictionary): array … … 568 569 569 570 if ('<<' != substr($dictionary, 0, 2)) { 570 throw new \Exception('Not a valid dictionary object.');571 throw new InvalidDictionaryObjectException('Not a valid dictionary object.'); 571 572 } 572 573 -
full-text-search/tags/2.14.7/vendor/smalot/pdfparser/src/Smalot/PdfParser/RawData/FilterHelper.php
r3138583 r3265371 43 43 namespace Smalot\PdfParser\RawData; 44 44 45 use Smalot\PdfParser\Exception\NotImplementedException; 46 45 47 class FilterHelper 46 48 { … … 55 57 * @return string Decoded data string 56 58 * 57 * @throws \Exception if a certain decode function is not implemented yet 59 * @throws \Exception 60 * @throws \Smalot\PdfParser\Exception\NotImplementedException if a certain decode function is not implemented yet 58 61 */ 59 62 public function decodeFilter(string $filter, string $data, int $decodeMemoryLimit = 0): string … … 76 79 77 80 case 'CCITTFaxDecode': 78 throw new \Exception('Decode CCITTFaxDecode not implemented yet.');81 throw new NotImplementedException('Decode CCITTFaxDecode not implemented yet.'); 79 82 case 'JBIG2Decode': 80 throw new \Exception('Decode JBIG2Decode not implemented yet.');83 throw new NotImplementedException('Decode JBIG2Decode not implemented yet.'); 81 84 case 'DCTDecode': 82 throw new \Exception('Decode DCTDecode not implemented yet.');85 throw new NotImplementedException('Decode DCTDecode not implemented yet.'); 83 86 case 'JPXDecode': 84 throw new \Exception('Decode JPXDecode not implemented yet.');87 throw new NotImplementedException('Decode JPXDecode not implemented yet.'); 85 88 case 'Crypt': 86 throw new \Exception('Decode Crypt not implemented yet.');89 throw new NotImplementedException('Decode Crypt not implemented yet.'); 87 90 default: 88 91 return $data; -
full-text-search/tags/2.14.7/vendor/smalot/pdfparser/src/Smalot/PdfParser/RawData/RawDataParser.php
r3138583 r3265371 44 44 45 45 use Smalot\PdfParser\Config; 46 use Smalot\PdfParser\Exception\EmptyPdfException; 47 use Smalot\PdfParser\Exception\MissingPdfHeaderException; 46 48 47 49 class RawDataParser … … 268 270 ('/' == $v[0]) 269 271 && ('Type' == $v[1]) 270 && (isset($sarr[$k + 1]) 272 && ( 273 isset($sarr[$k + 1]) 271 274 && '/' == $sarr[$k + 1][0] 272 275 && 'XRef' == $sarr[$k + 1][1] … … 294 297 '/' == $vdc[0] 295 298 && 'Columns' == $vdc[1] 296 && (isset($decpar[$kdc + 1]) 299 && ( 300 isset($decpar[$kdc + 1]) 297 301 && 'numeric' == $decpar[$kdc + 1][0] 298 302 ) … … 302 306 '/' == $vdc[0] 303 307 && 'Predictor' == $vdc[1] 304 && (isset($decpar[$kdc + 1]) 308 && ( 309 isset($decpar[$kdc + 1]) 305 310 && 'numeric' == $decpar[$kdc + 1][0] 306 311 ) … … 408 413 $prev_row = $ddata[$k]; 409 414 } // end for each row 410 // complete decoding415 // complete decoding 411 416 } else { 412 417 // number of bytes in a row … … 936 941 * @return array array of parsed PDF document objects 937 942 * 938 * @throws \Exception if empty PDF data given939 * @throws \Exception if PDF data missing %PDFheader943 * @throws EmptyPdfException if empty PDF data given 944 * @throws MissingPdfHeaderException if PDF data missing `%PDF-` header 940 945 */ 941 946 public function parseData(string $data): array 942 947 { 943 948 if (empty($data)) { 944 throw new \Exception('Empty PDF data given.');949 throw new EmptyPdfException('Empty PDF data given.'); 945 950 } 946 951 // find the pdf header starting position 947 952 if (false === ($trimpos = strpos($data, '%PDF-'))) { 948 throw new \Exception('Invalid PDF data: missing %PDFheader.');953 throw new MissingPdfHeaderException('Invalid PDF data: Missing `%PDF-` header.'); 949 954 } 950 955 -
full-text-search/tags/2.14.7/vendor/symfony/polyfill-mbstring/Mbstring.php
r3138583 r3265371 51 51 * - mb_ucfirst - Make a string's first character uppercase 52 52 * - mb_lcfirst - Make a string's first character lowercase 53 * - mb_trim - Strip whitespace (or other characters) from the beginning and end of a string 54 * - mb_ltrim - Strip whitespace (or other characters) from the beginning of a string 55 * - mb_rtrim - Strip whitespace (or other characters) from the end of a string 53 56 * 54 57 * Not implemented: … … 84 87 { 85 88 if (\is_array($s)) { 86 if (PHP_VERSION_ID < 70200) {87 trigger_error('mb_convert_encoding() expects parameter 1 to be string, array given', \E_USER_WARNING);88 89 return null;90 }91 92 89 $r = []; 93 90 foreach ($s as $str) { … … 428 425 public static function mb_check_encoding($var = null, $encoding = null) 429 426 { 430 if (\PHP_VERSION_ID < 70200 && \is_array($var)) {431 trigger_error('mb_check_encoding() expects parameter 1 to be string, array given', \E_USER_WARNING);432 433 return null;434 }435 436 427 if (null === $encoding) { 437 428 if (null === $var) { … … 981 972 } 982 973 974 public static function mb_trim(string $string, ?string $characters = null, ?string $encoding = null): string 975 { 976 return self::mb_internal_trim('{^[%s]+|[%1$s]+$}Du', $string, $characters, $encoding, __FUNCTION__); 977 } 978 979 public static function mb_ltrim(string $string, ?string $characters = null, ?string $encoding = null): string 980 { 981 return self::mb_internal_trim('{^[%s]+}Du', $string, $characters, $encoding, __FUNCTION__); 982 } 983 984 public static function mb_rtrim(string $string, ?string $characters = null, ?string $encoding = null): string 985 { 986 return self::mb_internal_trim('{[%s]+$}D', $string, $characters, $encoding, __FUNCTION__); 987 } 988 989 private static function mb_internal_trim(string $regex, string $string, ?string $characters, ?string $encoding, string $function): string 990 { 991 if (null === $encoding) { 992 $encoding = self::mb_internal_encoding(); 993 } else { 994 self::assertEncoding($encoding, $function.'(): Argument #3 ($encoding) must be a valid encoding, "%s" given'); 995 } 996 997 if ('' === $characters) { 998 return null === $encoding ? $string : self::mb_convert_encoding($string, $encoding); 999 } 1000 1001 if ('UTF-8' === $encoding) { 1002 $encoding = null; 1003 if (!preg_match('//u', $string)) { 1004 $string = @iconv('UTF-8', 'UTF-8//IGNORE', $string); 1005 } 1006 if (null !== $characters && !preg_match('//u', $characters)) { 1007 $characters = @iconv('UTF-8', 'UTF-8//IGNORE', $characters); 1008 } 1009 } else { 1010 $string = iconv($encoding, 'UTF-8//IGNORE', $string); 1011 1012 if (null !== $characters) { 1013 $characters = iconv($encoding, 'UTF-8//IGNORE', $characters); 1014 } 1015 } 1016 1017 if (null === $characters) { 1018 $characters = "\\0 \f\n\r\t\v\u{00A0}\u{1680}\u{2000}\u{2001}\u{2002}\u{2003}\u{2004}\u{2005}\u{2006}\u{2007}\u{2008}\u{2009}\u{200A}\u{2028}\u{2029}\u{202F}\u{205F}\u{3000}\u{0085}\u{180E}"; 1019 } else { 1020 $characters = preg_quote($characters); 1021 } 1022 1023 $string = preg_replace(sprintf($regex, $characters), '', $string); 1024 1025 if (null === $encoding) { 1026 return $string; 1027 } 1028 1029 return iconv('UTF-8', $encoding.'//IGNORE', $string); 1030 } 1031 983 1032 private static function assertEncoding(string $encoding, string $errorFormat): void 984 1033 { … … 986 1035 $validEncoding = @self::mb_check_encoding('', $encoding); 987 1036 } catch (\ValueError $e) { 988 throw new \ValueError( \sprintf($errorFormat, $encoding));1037 throw new \ValueError(sprintf($errorFormat, $encoding)); 989 1038 } 990 1039 991 1040 // BC for PHP 7.3 and lower 992 1041 if (!$validEncoding) { 993 throw new \ValueError( \sprintf($errorFormat, $encoding));1042 throw new \ValueError(sprintf($errorFormat, $encoding)); 994 1043 } 995 1044 } -
full-text-search/tags/2.14.7/vendor/symfony/polyfill-mbstring/bootstrap.php
r3138583 r3265371 145 145 } 146 146 147 if (!function_exists('mb_trim')) { 148 function mb_trim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_trim($string, $characters, $encoding); } 149 } 150 151 if (!function_exists('mb_ltrim')) { 152 function mb_ltrim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_ltrim($string, $characters, $encoding); } 153 } 154 155 if (!function_exists('mb_rtrim')) { 156 function mb_rtrim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_rtrim($string, $characters, $encoding); } 157 } 158 159 147 160 if (extension_loaded('mbstring')) { 148 161 return; -
full-text-search/tags/2.14.7/vendor/symfony/polyfill-mbstring/bootstrap80.php
r3138583 r3265371 94 94 } 95 95 if (!function_exists('mb_get_info')) { 96 function mb_get_info(?string $type = 'all'): array|string|int|false { return p\Mbstring::mb_get_info((string) $type); }96 function mb_get_info(?string $type = 'all'): array|string|int|false|null { return p\Mbstring::mb_get_info((string) $type); } 97 97 } 98 98 if (!function_exists('mb_http_output')) { … … 141 141 } 142 142 143 if (!function_exists('mb_trim')) { 144 function mb_trim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_trim($string, $characters, $encoding); } 145 } 146 147 if (!function_exists('mb_ltrim')) { 148 function mb_ltrim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_ltrim($string, $characters, $encoding); } 149 } 150 151 if (!function_exists('mb_rtrim')) { 152 function mb_rtrim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_rtrim($string, $characters, $encoding); } 153 } 154 143 155 if (extension_loaded('mbstring')) { 144 156 return; -
full-text-search/trunk/full-text-search.php
r3138583 r3265371 11 11 * Plugin URI: https://xakuro.com/wordpress/ 12 12 * Description: Replaces site search with full-text search. 13 * Version: 2.14. 613 * Version: 2.14.7 14 14 * Requires at least: 5.5 15 15 * Requires PHP: 7.2 … … 25 25 } 26 26 27 define( 'FULL_TEXT_SEARCH_VERSION', '2.14. 6' );27 define( 'FULL_TEXT_SEARCH_VERSION', '2.14.7' ); 28 28 29 29 require_once __DIR__ . '/main.php'; -
full-text-search/trunk/readme.txt
r3138583 r3265371 3 3 Tags: full-text search,full-text,search,fulltext,mroonga 4 4 Requires at least: 5.5 5 Tested up to: 6. 65 Tested up to: 6.7 6 6 Requires PHP: 7.2 7 Stable tag: 2.14. 67 Stable tag: 2.14.7 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 52 52 53 53 == Changelog == 54 55 = 2.14.7 = 56 57 * Supported WordPress version 6.7. 58 * Updated PDF Parser library to 2.12.0. 54 59 55 60 = 2.14.6 = -
full-text-search/trunk/vendor/composer/InstalledVersions.php
r2903276 r3265371 32 32 */ 33 33 private static $installed; 34 35 /** 36 * @var bool 37 */ 38 private static $installedIsLocalDir; 34 39 35 40 /** … … 310 315 self::$installed = $data; 311 316 self::$installedByVendor = array(); 317 318 // when using reload, we disable the duplicate protection to ensure that self::$installed data is 319 // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not, 320 // so we have to assume it does not, and that may result in duplicate data being returned when listing 321 // all installed packages for example 322 self::$installedIsLocalDir = false; 312 323 } 313 324 … … 323 334 324 335 $installed = array(); 336 $copiedLocalDir = false; 325 337 326 338 if (self::$canGetVendors) { 339 $selfDir = strtr(__DIR__, '\\', '/'); 327 340 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 341 $vendorDir = strtr($vendorDir, '\\', '/'); 328 342 if (isset(self::$installedByVendor[$vendorDir])) { 329 343 $installed[] = self::$installedByVendor[$vendorDir]; … … 331 345 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 346 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 335 self::$installed = $installed[count($installed) - 1]; 347 self::$installedByVendor[$vendorDir] = $required; 348 $installed[] = $required; 349 if (self::$installed === null && $vendorDir.'/composer' === $selfDir) { 350 self::$installed = $required; 351 self::$installedIsLocalDir = true; 336 352 } 353 } 354 if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) { 355 $copiedLocalDir = true; 337 356 } 338 357 } … … 351 370 } 352 371 353 if (self::$installed !== array() ) {372 if (self::$installed !== array() && !$copiedLocalDir) { 354 373 $installed[] = self::$installed; 355 374 } -
full-text-search/trunk/vendor/composer/installed.json
r3138583 r3265371 26 26 "type": "composer-plugin", 27 27 "extra": { 28 "class": "Automattic\\Jetpack\\Autoloader\\CustomAutoloaderPlugin", 28 29 "autotagger": true, 29 "class": "Automattic\\Jetpack\\Autoloader\\CustomAutoloaderPlugin",30 30 "mirror-repo": "Automattic/jetpack-autoloader", 31 "branch-alias": { 32 "dev-trunk": "2.12.x-dev" 33 }, 31 34 "changelogger": { 32 35 "link-template": "https://github.com/Automattic/jetpack-autoloader/compare/v${old}...v${new}" … … 34 37 "version-constants": { 35 38 "::VERSION": "src/AutoloadGenerator.php" 36 },37 "branch-alias": {38 "dev-trunk": "2.12.x-dev"39 39 } 40 40 }, … … 68 68 { 69 69 "name": "smalot/pdfparser", 70 "version": "v2.1 1.0",71 "version_normalized": "2.1 1.0.0",70 "version": "v2.12.0", 71 "version_normalized": "2.12.0.0", 72 72 "source": { 73 73 "type": "git", 74 74 "url": "https://github.com/smalot/pdfparser.git", 75 "reference": " ac8e6678b0940e4b2ccd5caadd3fb18e68093be6"75 "reference": "8440edbf58c8596074e78ada38dcb0bd041a5948" 76 76 }, 77 77 "dist": { 78 78 "type": "zip", 79 "url": "https://api.github.com/repos/smalot/pdfparser/zipball/ ac8e6678b0940e4b2ccd5caadd3fb18e68093be6",80 "reference": " ac8e6678b0940e4b2ccd5caadd3fb18e68093be6",79 "url": "https://api.github.com/repos/smalot/pdfparser/zipball/8440edbf58c8596074e78ada38dcb0bd041a5948", 80 "reference": "8440edbf58c8596074e78ada38dcb0bd041a5948", 81 81 "shasum": "" 82 82 }, … … 87 87 "symfony/polyfill-mbstring": "^1.18" 88 88 }, 89 "time": "202 4-08-16T06:48:03+00:00",89 "time": "2025-03-31T13:16:09+00:00", 90 90 "type": "library", 91 91 "installation-source": "dist", … … 116 116 "support": { 117 117 "issues": "https://github.com/smalot/pdfparser/issues", 118 "source": "https://github.com/smalot/pdfparser/tree/v2.1 1.0"118 "source": "https://github.com/smalot/pdfparser/tree/v2.12.0" 119 119 }, 120 120 "install-path": "../smalot/pdfparser" … … 122 122 { 123 123 "name": "symfony/polyfill-mbstring", 124 "version": "v1.3 0.0",125 "version_normalized": "1.3 0.0.0",124 "version": "v1.31.0", 125 "version_normalized": "1.31.0.0", 126 126 "source": { 127 127 "type": "git", 128 128 "url": "https://github.com/symfony/polyfill-mbstring.git", 129 "reference": " fd22ab50000ef01661e2a31d850ebaa297f8e03c"129 "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341" 130 130 }, 131 131 "dist": { 132 132 "type": "zip", 133 "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/ fd22ab50000ef01661e2a31d850ebaa297f8e03c",134 "reference": " fd22ab50000ef01661e2a31d850ebaa297f8e03c",133 "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/85181ba99b2345b0ef10ce42ecac37612d9fd341", 134 "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341", 135 135 "shasum": "" 136 136 }, 137 137 "require": { 138 "php": ">=7. 1"138 "php": ">=7.2" 139 139 }, 140 140 "provide": { … … 144 144 "ext-mbstring": "For best performance" 145 145 }, 146 "time": "2024-0 6-19T12:30:46+00:00",146 "time": "2024-09-09T11:45:10+00:00", 147 147 "type": "library", 148 148 "extra": { 149 149 "thanks": { 150 " name": "symfony/polyfill",151 " url": "https://github.com/symfony/polyfill"150 "url": "https://github.com/symfony/polyfill", 151 "name": "symfony/polyfill" 152 152 } 153 153 }, … … 185 185 ], 186 186 "support": { 187 "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.3 0.0"187 "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.31.0" 188 188 }, 189 189 "funding": [ -
full-text-search/trunk/vendor/composer/installed.php
r3138583 r3265371 2 2 'root' => array( 3 3 'name' => '__root__', 4 'pretty_version' => 'v2.14. 6',5 'version' => '2.14. 6.0',6 'reference' => ' dd1bbe276c4c0cfd4455bfe3321fb7dcf40539fc',4 'pretty_version' => 'v2.14.7', 5 'version' => '2.14.7.0', 6 'reference' => '30407d34ff04ea8e5b61094bb55465671dca208b', 7 7 'type' => 'library', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 '__root__' => array( 14 'pretty_version' => 'v2.14. 6',15 'version' => '2.14. 6.0',16 'reference' => ' dd1bbe276c4c0cfd4455bfe3321fb7dcf40539fc',14 'pretty_version' => 'v2.14.7', 15 'version' => '2.14.7.0', 16 'reference' => '30407d34ff04ea8e5b61094bb55465671dca208b', 17 17 'type' => 'library', 18 18 'install_path' => __DIR__ . '/../../', … … 30 30 ), 31 31 'smalot/pdfparser' => array( 32 'pretty_version' => 'v2.1 1.0',33 'version' => '2.1 1.0.0',34 'reference' => ' ac8e6678b0940e4b2ccd5caadd3fb18e68093be6',32 'pretty_version' => 'v2.12.0', 33 'version' => '2.12.0.0', 34 'reference' => '8440edbf58c8596074e78ada38dcb0bd041a5948', 35 35 'type' => 'library', 36 36 'install_path' => __DIR__ . '/../smalot/pdfparser', … … 39 39 ), 40 40 'symfony/polyfill-mbstring' => array( 41 'pretty_version' => 'v1.3 0.0',42 'version' => '1.3 0.0.0',43 'reference' => ' fd22ab50000ef01661e2a31d850ebaa297f8e03c',41 'pretty_version' => 'v1.31.0', 42 'version' => '1.31.0.0', 43 'reference' => '85181ba99b2345b0ef10ce42ecac37612d9fd341', 44 44 'type' => 'library', 45 45 'install_path' => __DIR__ . '/../symfony/polyfill-mbstring', -
full-text-search/trunk/vendor/composer/jetpack_autoload_classmap.php
r3138583 r3265371 12 12 ), 13 13 'Smalot\\PdfParser\\Config' => array( 14 'version' => '2.1 1.0.0',14 'version' => '2.12.0.0', 15 15 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Config.php' 16 16 ), 17 17 'Smalot\\PdfParser\\Document' => array( 18 'version' => '2.1 1.0.0',18 'version' => '2.12.0.0', 19 19 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Document.php' 20 20 ), 21 21 'Smalot\\PdfParser\\Element' => array( 22 'version' => '2.1 1.0.0',22 'version' => '2.12.0.0', 23 23 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element.php' 24 24 ), 25 25 'Smalot\\PdfParser\\Element\\ElementArray' => array( 26 'version' => '2.1 1.0.0',26 'version' => '2.12.0.0', 27 27 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementArray.php' 28 28 ), 29 29 'Smalot\\PdfParser\\Element\\ElementBoolean' => array( 30 'version' => '2.1 1.0.0',30 'version' => '2.12.0.0', 31 31 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementBoolean.php' 32 32 ), 33 33 'Smalot\\PdfParser\\Element\\ElementDate' => array( 34 'version' => '2.1 1.0.0',34 'version' => '2.12.0.0', 35 35 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementDate.php' 36 36 ), 37 37 'Smalot\\PdfParser\\Element\\ElementHexa' => array( 38 'version' => '2.1 1.0.0',38 'version' => '2.12.0.0', 39 39 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementHexa.php' 40 40 ), 41 41 'Smalot\\PdfParser\\Element\\ElementMissing' => array( 42 'version' => '2.1 1.0.0',42 'version' => '2.12.0.0', 43 43 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementMissing.php' 44 44 ), 45 45 'Smalot\\PdfParser\\Element\\ElementName' => array( 46 'version' => '2.1 1.0.0',46 'version' => '2.12.0.0', 47 47 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementName.php' 48 48 ), 49 49 'Smalot\\PdfParser\\Element\\ElementNull' => array( 50 'version' => '2.1 1.0.0',50 'version' => '2.12.0.0', 51 51 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementNull.php' 52 52 ), 53 53 'Smalot\\PdfParser\\Element\\ElementNumeric' => array( 54 'version' => '2.1 1.0.0',54 'version' => '2.12.0.0', 55 55 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementNumeric.php' 56 56 ), 57 57 'Smalot\\PdfParser\\Element\\ElementString' => array( 58 'version' => '2.1 1.0.0',58 'version' => '2.12.0.0', 59 59 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementString.php' 60 60 ), 61 61 'Smalot\\PdfParser\\Element\\ElementStruct' => array( 62 'version' => '2.1 1.0.0',62 'version' => '2.12.0.0', 63 63 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementStruct.php' 64 64 ), 65 65 'Smalot\\PdfParser\\Element\\ElementXRef' => array( 66 'version' => '2.1 1.0.0',66 'version' => '2.12.0.0', 67 67 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Element/ElementXRef.php' 68 68 ), 69 69 'Smalot\\PdfParser\\Encoding' => array( 70 'version' => '2.1 1.0.0',70 'version' => '2.12.0.0', 71 71 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding.php' 72 72 ), 73 73 'Smalot\\PdfParser\\Encoding\\AbstractEncoding' => array( 74 'version' => '2.1 1.0.0',74 'version' => '2.12.0.0', 75 75 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/AbstractEncoding.php' 76 76 ), 77 77 'Smalot\\PdfParser\\Encoding\\EncodingLocator' => array( 78 'version' => '2.1 1.0.0',78 'version' => '2.12.0.0', 79 79 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/EncodingLocator.php' 80 80 ), 81 81 'Smalot\\PdfParser\\Encoding\\ISOLatin1Encoding' => array( 82 'version' => '2.1 1.0.0',82 'version' => '2.12.0.0', 83 83 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/ISOLatin1Encoding.php' 84 84 ), 85 85 'Smalot\\PdfParser\\Encoding\\ISOLatin9Encoding' => array( 86 'version' => '2.1 1.0.0',86 'version' => '2.12.0.0', 87 87 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/ISOLatin9Encoding.php' 88 88 ), 89 89 'Smalot\\PdfParser\\Encoding\\MacRomanEncoding' => array( 90 'version' => '2.1 1.0.0',90 'version' => '2.12.0.0', 91 91 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/MacRomanEncoding.php' 92 92 ), 93 93 'Smalot\\PdfParser\\Encoding\\PDFDocEncoding' => array( 94 'version' => '2.1 1.0.0',94 'version' => '2.12.0.0', 95 95 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/PDFDocEncoding.php' 96 96 ), 97 97 'Smalot\\PdfParser\\Encoding\\PostScriptGlyphs' => array( 98 'version' => '2.1 1.0.0',98 'version' => '2.12.0.0', 99 99 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/PostScriptGlyphs.php' 100 100 ), 101 101 'Smalot\\PdfParser\\Encoding\\StandardEncoding' => array( 102 'version' => '2.1 1.0.0',102 'version' => '2.12.0.0', 103 103 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/StandardEncoding.php' 104 104 ), 105 105 'Smalot\\PdfParser\\Encoding\\WinAnsiEncoding' => array( 106 'version' => '2.1 1.0.0',106 'version' => '2.12.0.0', 107 107 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Encoding/WinAnsiEncoding.php' 108 108 ), 109 'Smalot\\PdfParser\\Exception\\EmptyPdfException' => array( 110 'version' => '2.12.0.0', 111 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Exception/EmptyPdfException.php' 112 ), 109 113 'Smalot\\PdfParser\\Exception\\EncodingNotFoundException' => array( 110 'version' => '2.1 1.0.0',114 'version' => '2.12.0.0', 111 115 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Exception/EncodingNotFoundException.php' 112 116 ), 117 'Smalot\\PdfParser\\Exception\\InvalidDictionaryObjectException' => array( 118 'version' => '2.12.0.0', 119 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Exception/InvalidDictionaryObjectException.php' 120 ), 121 'Smalot\\PdfParser\\Exception\\MissingCatalogException' => array( 122 'version' => '2.12.0.0', 123 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Exception/MissingCatalogException.php' 124 ), 125 'Smalot\\PdfParser\\Exception\\MissingPdfHeaderException' => array( 126 'version' => '2.12.0.0', 127 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Exception/MissingPdfHeaderException.php' 128 ), 129 'Smalot\\PdfParser\\Exception\\NotImplementedException' => array( 130 'version' => '2.12.0.0', 131 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Exception/NotImplementedException.php' 132 ), 113 133 'Smalot\\PdfParser\\Font' => array( 114 'version' => '2.1 1.0.0',134 'version' => '2.12.0.0', 115 135 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Font.php' 116 136 ), 117 137 'Smalot\\PdfParser\\Font\\FontCIDFontType0' => array( 118 'version' => '2.1 1.0.0',138 'version' => '2.12.0.0', 119 139 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Font/FontCIDFontType0.php' 120 140 ), 121 141 'Smalot\\PdfParser\\Font\\FontCIDFontType2' => array( 122 'version' => '2.1 1.0.0',142 'version' => '2.12.0.0', 123 143 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Font/FontCIDFontType2.php' 124 144 ), 125 145 'Smalot\\PdfParser\\Font\\FontTrueType' => array( 126 'version' => '2.1 1.0.0',146 'version' => '2.12.0.0', 127 147 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Font/FontTrueType.php' 128 148 ), 129 149 'Smalot\\PdfParser\\Font\\FontType0' => array( 130 'version' => '2.1 1.0.0',150 'version' => '2.12.0.0', 131 151 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Font/FontType0.php' 132 152 ), 133 153 'Smalot\\PdfParser\\Font\\FontType1' => array( 134 'version' => '2.1 1.0.0',154 'version' => '2.12.0.0', 135 155 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Font/FontType1.php' 136 156 ), 137 157 'Smalot\\PdfParser\\Font\\FontType3' => array( 138 'version' => '2.1 1.0.0',158 'version' => '2.12.0.0', 139 159 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Font/FontType3.php' 140 160 ), 141 161 'Smalot\\PdfParser\\Header' => array( 142 'version' => '2.1 1.0.0',162 'version' => '2.12.0.0', 143 163 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Header.php' 144 164 ), 145 165 'Smalot\\PdfParser\\PDFObject' => array( 146 'version' => '2.1 1.0.0',166 'version' => '2.12.0.0', 147 167 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/PDFObject.php' 148 168 ), 149 169 'Smalot\\PdfParser\\Page' => array( 150 'version' => '2.1 1.0.0',170 'version' => '2.12.0.0', 151 171 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Page.php' 152 172 ), 153 173 'Smalot\\PdfParser\\Pages' => array( 154 'version' => '2.1 1.0.0',174 'version' => '2.12.0.0', 155 175 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Pages.php' 156 176 ), 157 177 'Smalot\\PdfParser\\Parser' => array( 158 'version' => '2.1 1.0.0',178 'version' => '2.12.0.0', 159 179 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/Parser.php' 160 180 ), 161 181 'Smalot\\PdfParser\\RawData\\FilterHelper' => array( 162 'version' => '2.1 1.0.0',182 'version' => '2.12.0.0', 163 183 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/RawData/FilterHelper.php' 164 184 ), 165 185 'Smalot\\PdfParser\\RawData\\RawDataParser' => array( 166 'version' => '2.1 1.0.0',186 'version' => '2.12.0.0', 167 187 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/RawData/RawDataParser.php' 168 188 ), 169 189 'Smalot\\PdfParser\\XObject\\Form' => array( 170 'version' => '2.1 1.0.0',190 'version' => '2.12.0.0', 171 191 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/XObject/Form.php' 172 192 ), 173 193 'Smalot\\PdfParser\\XObject\\Image' => array( 174 'version' => '2.1 1.0.0',194 'version' => '2.12.0.0', 175 195 'path' => $vendorDir . '/smalot/pdfparser/src/Smalot/PdfParser/XObject/Image.php' 176 196 ), -
full-text-search/trunk/vendor/composer/jetpack_autoload_filemap.php
r3138583 r3265371 8 8 return array( 9 9 '0e6d7bf4a5811bfa5cf40c5ccd6fae6a' => array( 10 'version' => '1.3 0.0.0',10 'version' => '1.31.0.0', 11 11 'path' => $vendorDir . '/symfony/polyfill-mbstring/bootstrap.php' 12 12 ), -
full-text-search/trunk/vendor/composer/jetpack_autoload_psr4.php
r3138583 r3265371 8 8 return array( 9 9 'Symfony\\Polyfill\\Mbstring\\' => array( 10 'version' => '1.3 0.0.0',10 'version' => '1.31.0.0', 11 11 'path' => array( $vendorDir . '/symfony/polyfill-mbstring' ) 12 12 ), -
full-text-search/trunk/vendor/composer/platform_check.php
r2773119 r3265371 5 5 $issues = array(); 6 6 7 if (!(PHP_VERSION_ID >= 70 100)) {8 $issues[] = 'Your Composer dependencies require a PHP version ">= 7. 1.0". You are running ' . PHP_VERSION . '.';7 if (!(PHP_VERSION_ID >= 70200)) { 8 $issues[] = 'Your Composer dependencies require a PHP version ">= 7.2.0". You are running ' . PHP_VERSION . '.'; 9 9 } 10 10 -
full-text-search/trunk/vendor/smalot/pdfparser/.github/ISSUE_TEMPLATE/incorrect-parsing.md
r2773119 r3265371 9 9 10 10 <!-- DO NOT THROW THIS AWAY --> 11 <!-- Fill out the FULL versions with patch versions -->11 <!-- Fill out the FULL versions with patch versions (e.g. 2.10.0) --> 12 12 13 - PHP Version: 14 - PDFParser Version: 13 - PHP Version: 14 - PDFParser Version: 15 15 16 16 ### Description: -
full-text-search/trunk/vendor/smalot/pdfparser/.github/pull_request_template.md
r3021053 r3265371 12 12 # Checklist for code / configuration changes 13 13 14 *In case you changed the code/configuration, please read each of the following checkboxes as they contain valuable information:* 15 16 * [ ] Please add at least **one test case** (unit test, system test, ...) to demonstrate that the change is working. If existing code was changed, your tests cover these code parts as well. 17 By the way, you don't have to provide a full fledged PDF file to demonstrate a fix. Instead a unit test may be sufficient sometimes, 18 please have a look at [FontTest](https://github.com/smalot/pdfparser/blob/master/tests/PHPUnit/Unit/FontTest.php#L40) for example code. 19 Code changes without any tests are likely to be rejected. If you dont know how to write tests, no problem, tell us upfront and we may add them ourselves or discuss other ways. 20 * [ ] Please run **PHP-CS-Fixer** before committing, to confirm with our coding styles. See https://github.com/smalot/pdfparser/blob/master/.php-cs-fixer.php for more information about our coding styles. 21 * [ ] In case you **fix an existing issue**, please do one of the following: 22 * [ ] Write in this text something like `fixes #1234` to outline that you are providing a fix for the issue `#1234`. 23 * [ ] After the pull request was created, you will find on the right side a section called **Development**. There issues can be selected which will be closed after the your pull request got merged. 24 * [ ] In case you changed internal behavior or functionality, please check our documentation to make sure these changes are **documented properly**: https://github.com/smalot/pdfparser/tree/master/doc 25 * [ ] In case you want to discuss new ideas/changes and you are not sure, just create a pull request and mark it as **a draft** 26 (see [here](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests#draft-pull-requests) for more information). 27 This will tell us, that it is not ready for merge, but you want to discuss certain issues. 28 29 <!-- 30 Pull requests will be declined/rejected if one part of the continous integration pipeline fails. 31 We use the pipeline to make sure no regressions are introduced and existing code still runs as expected. 32 --> 14 See [CONTRIBUTING.md](./../CONTRIBUTING.md) for all essential information about contributing. -
full-text-search/trunk/vendor/smalot/pdfparser/.github/workflows/continuous-integration.yml
r3138583 r3265371 21 21 - "8.2" 22 22 - "8.3" 23 - "8.4" 23 24 24 25 steps: … … 152 153 - "8.2" 153 154 - "8.3" 155 - "8.4" 154 156 155 157 steps: … … 206 208 fail-fast: true 207 209 matrix: 208 php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3' ]210 php-versions: ['7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4'] 209 211 210 212 steps: -
full-text-search/trunk/vendor/smalot/pdfparser/.php-cs-fixer.php
r2951448 r3265371 15 15 $config 16 16 ->setFinder($finder) 17 ->setRiskyAllowed(true)18 17 ->setRules([ 19 '@Symfony' => true, 20 '@Symfony:risky' => true, 18 '@PSR12' => true, 21 19 'array_syntax' => ['syntax' => 'short'], 22 20 'no_empty_phpdoc' => true, -
full-text-search/trunk/vendor/smalot/pdfparser/phpunit-windows.xml
r2884008 r3265371 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <!-- https://phpunit.de/manual/current/en/appendixes.configuration.html --> 3 <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" backupGlobals="false" bootstrap="vendor\autoload.php" colors="true" processIsolation="false" stopOnFailure="false" cacheDirectory=".phpunit.cache" backupStaticProperties="false" >3 <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" backupGlobals="false" bootstrap="vendor\autoload.php" colors="true" processIsolation="false" stopOnFailure="false" cacheDirectory=".phpunit.cache" backupStaticProperties="false" displayDetailsOnTestsThatTriggerWarnings="true"> 4 4 <coverage> 5 5 <include> -
full-text-search/trunk/vendor/smalot/pdfparser/src/Smalot/PdfParser/Document.php
r3138583 r3265371 34 34 35 35 use Smalot\PdfParser\Encoding\PDFDocEncoding; 36 use Smalot\PdfParser\Exception\MissingCatalogException; 36 37 37 38 /** … … 256 257 $metadata[] = $val['value']; 257 258 258 // Else assign a value to this property259 // Else assign a value to this property 259 260 } else { 260 261 $metadata[$val['tag']] = $val['value']; … … 380 381 * @return Page[] 381 382 * 382 * @throws \Exception383 * @throws MissingCatalogException 383 384 */ 384 385 public function getPages() … … 416 417 } 417 418 418 throw new \Exception('Missing catalog.');419 throw new MissingCatalogException('Missing catalog.'); 419 420 } 420 421 -
full-text-search/trunk/vendor/smalot/pdfparser/src/Smalot/PdfParser/Font.php
r3138583 r3265371 217 217 if (preg_match_all('/beginbfrange(?P<sections>.*?)endbfrange/s', $content, $matches)) { 218 218 foreach ($matches['sections'] as $section) { 219 // Support for : <srcCode1> <srcCode2> <dstString> 220 $regexp = '/<(?P<from>[0-9A-F]+)> *<(?P<to>[0-9A-F]+)> *<(?P<offset>[0-9A-F]+)>[ \r\n]+/is'; 219 /** 220 * Regexp to capture <from>, <to>, and either <offset> or [...] items. 221 * - (?P<from>...) Source range's start 222 * - (?P<to>...) Source range's end 223 * - (?P<dest>...) Destination range's offset or each char code 224 * Some PDF file has 2-byte Unicode values on new lines > added \r\n 225 */ 226 $regexp = '/<(?P<from>[0-9A-F]+)> *<(?P<to>[0-9A-F]+)> *(?P<dest><[0-9A-F]+>|\[[\r\n<>0-9A-F ]+\])[ \r\n]+/is'; 221 227 222 228 preg_match_all($regexp, $section, $matches); … … 225 231 $char_from = hexdec($from); 226 232 $char_to = hexdec($matches['to'][$key]); 227 $offset = hexdec($matches['offset'][$key]); 228 229 for ($char = $char_from; $char <= $char_to; ++$char) { 230 $this->table[$char] = self::uchr($char - $char_from + $offset); 231 } 232 } 233 234 // Support for : <srcCode1> <srcCodeN> [<dstString1> <dstString2> ... <dstStringN>] 235 // Some PDF file has 2-byte Unicode values on new lines > added \r\n 236 $regexp = '/<(?P<from>[0-9A-F]+)> *<(?P<to>[0-9A-F]+)> *\[(?P<strings>[\r\n<>0-9A-F ]+)\][ \r\n]+/is'; 237 238 preg_match_all($regexp, $section, $matches); 239 240 foreach ($matches['from'] as $key => $from) { 241 $char_from = hexdec($from); 242 $strings = []; 243 244 preg_match_all('/<(?P<string>[0-9A-F]+)> */is', $matches['strings'][$key], $strings); 245 246 foreach ($strings['string'] as $position => $string) { 247 $parts = preg_split( 248 '/([0-9A-F]{4})/i', 249 $string, 250 0, 251 \PREG_SPLIT_NO_EMPTY | \PREG_SPLIT_DELIM_CAPTURE 252 ); 253 $text = ''; 254 foreach ($parts as $part) { 255 $text .= self::uchr(hexdec($part)); 233 $dest = $matches['dest'][$key]; 234 235 if (1 === preg_match('/^<(?P<offset>[0-9A-F]+)>$/i', $dest, $offset_matches)) { 236 // Support for : <srcCode1> <srcCode2> <dstString> 237 $offset = hexdec($offset_matches['offset']); 238 239 for ($char = $char_from; $char <= $char_to; ++$char) { 240 $this->table[$char] = self::uchr($char - $char_from + $offset); 256 241 } 257 $this->table[$char_from + $position] = $text; 242 } else { 243 // Support for : <srcCode1> <srcCodeN> [<dstString1> <dstString2> ... <dstStringN>] 244 $strings = []; 245 $matched = preg_match_all('/<(?P<string>[0-9A-F]+)> */is', $dest, $strings); 246 if (false === $matched || 0 === $matched) { 247 continue; 248 } 249 250 foreach ($strings['string'] as $position => $string) { 251 $parts = preg_split( 252 '/([0-9A-F]{4})/i', 253 $string, 254 0, 255 \PREG_SPLIT_NO_EMPTY | \PREG_SPLIT_DELIM_CAPTURE 256 ); 257 if (false === $parts) { 258 continue; 259 } 260 $text = ''; 261 foreach ($parts as $part) { 262 $text .= self::uchr(hexdec($part)); 263 } 264 $this->table[$char_from + $position] = $text; 265 } 258 266 } 259 267 } … … 288 296 $widths = $details['Widths'] ?? []; 289 297 290 // Widths array is zero indexed but table is not. We must map them based on FirstChar and LastChar 291 $width_map = array_flip(range($details['FirstChar'], $details['LastChar'])); 298 /* 299 * Widths array is zero indexed but table is not. We must map them based on FirstChar and LastChar 300 * 301 * Note: Without the change you would see warnings in PHP 8.4 because the values of FirstChar or LastChar 302 * can be null sometimes. 303 */ 304 $width_map = array_flip(range((int) $details['FirstChar'], (int) $details['LastChar'])); 292 305 293 306 $width = null; -
full-text-search/trunk/vendor/smalot/pdfparser/src/Smalot/PdfParser/PDFObject.php
r3138583 r3265371 33 33 namespace Smalot\PdfParser; 34 34 35 use Smalot\PdfParser\Exception\InvalidDictionaryObjectException; 35 36 use Smalot\PdfParser\XObject\Form; 36 37 use Smalot\PdfParser\XObject\Image; … … 452 453 $sections[] = $line; 453 454 454 // If an 'ET' is encountered, unset the $inTextBlock flag455 // If an 'ET' is encountered, unset the $inTextBlock flag 455 456 } elseif ('ET' == $line) { 456 457 $inTextBlock = false; … … 560 561 * @internal 561 562 * 562 * @throws \Exception563 * @throws InvalidDictionaryObjectException 563 564 */ 564 565 public function parseDictionary(string $dictionary): array … … 568 569 569 570 if ('<<' != substr($dictionary, 0, 2)) { 570 throw new \Exception('Not a valid dictionary object.');571 throw new InvalidDictionaryObjectException('Not a valid dictionary object.'); 571 572 } 572 573 -
full-text-search/trunk/vendor/smalot/pdfparser/src/Smalot/PdfParser/RawData/FilterHelper.php
r3138583 r3265371 43 43 namespace Smalot\PdfParser\RawData; 44 44 45 use Smalot\PdfParser\Exception\NotImplementedException; 46 45 47 class FilterHelper 46 48 { … … 55 57 * @return string Decoded data string 56 58 * 57 * @throws \Exception if a certain decode function is not implemented yet 59 * @throws \Exception 60 * @throws \Smalot\PdfParser\Exception\NotImplementedException if a certain decode function is not implemented yet 58 61 */ 59 62 public function decodeFilter(string $filter, string $data, int $decodeMemoryLimit = 0): string … … 76 79 77 80 case 'CCITTFaxDecode': 78 throw new \Exception('Decode CCITTFaxDecode not implemented yet.');81 throw new NotImplementedException('Decode CCITTFaxDecode not implemented yet.'); 79 82 case 'JBIG2Decode': 80 throw new \Exception('Decode JBIG2Decode not implemented yet.');83 throw new NotImplementedException('Decode JBIG2Decode not implemented yet.'); 81 84 case 'DCTDecode': 82 throw new \Exception('Decode DCTDecode not implemented yet.');85 throw new NotImplementedException('Decode DCTDecode not implemented yet.'); 83 86 case 'JPXDecode': 84 throw new \Exception('Decode JPXDecode not implemented yet.');87 throw new NotImplementedException('Decode JPXDecode not implemented yet.'); 85 88 case 'Crypt': 86 throw new \Exception('Decode Crypt not implemented yet.');89 throw new NotImplementedException('Decode Crypt not implemented yet.'); 87 90 default: 88 91 return $data; -
full-text-search/trunk/vendor/smalot/pdfparser/src/Smalot/PdfParser/RawData/RawDataParser.php
r3138583 r3265371 44 44 45 45 use Smalot\PdfParser\Config; 46 use Smalot\PdfParser\Exception\EmptyPdfException; 47 use Smalot\PdfParser\Exception\MissingPdfHeaderException; 46 48 47 49 class RawDataParser … … 268 270 ('/' == $v[0]) 269 271 && ('Type' == $v[1]) 270 && (isset($sarr[$k + 1]) 272 && ( 273 isset($sarr[$k + 1]) 271 274 && '/' == $sarr[$k + 1][0] 272 275 && 'XRef' == $sarr[$k + 1][1] … … 294 297 '/' == $vdc[0] 295 298 && 'Columns' == $vdc[1] 296 && (isset($decpar[$kdc + 1]) 299 && ( 300 isset($decpar[$kdc + 1]) 297 301 && 'numeric' == $decpar[$kdc + 1][0] 298 302 ) … … 302 306 '/' == $vdc[0] 303 307 && 'Predictor' == $vdc[1] 304 && (isset($decpar[$kdc + 1]) 308 && ( 309 isset($decpar[$kdc + 1]) 305 310 && 'numeric' == $decpar[$kdc + 1][0] 306 311 ) … … 408 413 $prev_row = $ddata[$k]; 409 414 } // end for each row 410 // complete decoding415 // complete decoding 411 416 } else { 412 417 // number of bytes in a row … … 936 941 * @return array array of parsed PDF document objects 937 942 * 938 * @throws \Exception if empty PDF data given939 * @throws \Exception if PDF data missing %PDFheader943 * @throws EmptyPdfException if empty PDF data given 944 * @throws MissingPdfHeaderException if PDF data missing `%PDF-` header 940 945 */ 941 946 public function parseData(string $data): array 942 947 { 943 948 if (empty($data)) { 944 throw new \Exception('Empty PDF data given.');949 throw new EmptyPdfException('Empty PDF data given.'); 945 950 } 946 951 // find the pdf header starting position 947 952 if (false === ($trimpos = strpos($data, '%PDF-'))) { 948 throw new \Exception('Invalid PDF data: missing %PDFheader.');953 throw new MissingPdfHeaderException('Invalid PDF data: Missing `%PDF-` header.'); 949 954 } 950 955 -
full-text-search/trunk/vendor/symfony/polyfill-mbstring/Mbstring.php
r3138583 r3265371 51 51 * - mb_ucfirst - Make a string's first character uppercase 52 52 * - mb_lcfirst - Make a string's first character lowercase 53 * - mb_trim - Strip whitespace (or other characters) from the beginning and end of a string 54 * - mb_ltrim - Strip whitespace (or other characters) from the beginning of a string 55 * - mb_rtrim - Strip whitespace (or other characters) from the end of a string 53 56 * 54 57 * Not implemented: … … 84 87 { 85 88 if (\is_array($s)) { 86 if (PHP_VERSION_ID < 70200) {87 trigger_error('mb_convert_encoding() expects parameter 1 to be string, array given', \E_USER_WARNING);88 89 return null;90 }91 92 89 $r = []; 93 90 foreach ($s as $str) { … … 428 425 public static function mb_check_encoding($var = null, $encoding = null) 429 426 { 430 if (\PHP_VERSION_ID < 70200 && \is_array($var)) {431 trigger_error('mb_check_encoding() expects parameter 1 to be string, array given', \E_USER_WARNING);432 433 return null;434 }435 436 427 if (null === $encoding) { 437 428 if (null === $var) { … … 981 972 } 982 973 974 public static function mb_trim(string $string, ?string $characters = null, ?string $encoding = null): string 975 { 976 return self::mb_internal_trim('{^[%s]+|[%1$s]+$}Du', $string, $characters, $encoding, __FUNCTION__); 977 } 978 979 public static function mb_ltrim(string $string, ?string $characters = null, ?string $encoding = null): string 980 { 981 return self::mb_internal_trim('{^[%s]+}Du', $string, $characters, $encoding, __FUNCTION__); 982 } 983 984 public static function mb_rtrim(string $string, ?string $characters = null, ?string $encoding = null): string 985 { 986 return self::mb_internal_trim('{[%s]+$}D', $string, $characters, $encoding, __FUNCTION__); 987 } 988 989 private static function mb_internal_trim(string $regex, string $string, ?string $characters, ?string $encoding, string $function): string 990 { 991 if (null === $encoding) { 992 $encoding = self::mb_internal_encoding(); 993 } else { 994 self::assertEncoding($encoding, $function.'(): Argument #3 ($encoding) must be a valid encoding, "%s" given'); 995 } 996 997 if ('' === $characters) { 998 return null === $encoding ? $string : self::mb_convert_encoding($string, $encoding); 999 } 1000 1001 if ('UTF-8' === $encoding) { 1002 $encoding = null; 1003 if (!preg_match('//u', $string)) { 1004 $string = @iconv('UTF-8', 'UTF-8//IGNORE', $string); 1005 } 1006 if (null !== $characters && !preg_match('//u', $characters)) { 1007 $characters = @iconv('UTF-8', 'UTF-8//IGNORE', $characters); 1008 } 1009 } else { 1010 $string = iconv($encoding, 'UTF-8//IGNORE', $string); 1011 1012 if (null !== $characters) { 1013 $characters = iconv($encoding, 'UTF-8//IGNORE', $characters); 1014 } 1015 } 1016 1017 if (null === $characters) { 1018 $characters = "\\0 \f\n\r\t\v\u{00A0}\u{1680}\u{2000}\u{2001}\u{2002}\u{2003}\u{2004}\u{2005}\u{2006}\u{2007}\u{2008}\u{2009}\u{200A}\u{2028}\u{2029}\u{202F}\u{205F}\u{3000}\u{0085}\u{180E}"; 1019 } else { 1020 $characters = preg_quote($characters); 1021 } 1022 1023 $string = preg_replace(sprintf($regex, $characters), '', $string); 1024 1025 if (null === $encoding) { 1026 return $string; 1027 } 1028 1029 return iconv('UTF-8', $encoding.'//IGNORE', $string); 1030 } 1031 983 1032 private static function assertEncoding(string $encoding, string $errorFormat): void 984 1033 { … … 986 1035 $validEncoding = @self::mb_check_encoding('', $encoding); 987 1036 } catch (\ValueError $e) { 988 throw new \ValueError( \sprintf($errorFormat, $encoding));1037 throw new \ValueError(sprintf($errorFormat, $encoding)); 989 1038 } 990 1039 991 1040 // BC for PHP 7.3 and lower 992 1041 if (!$validEncoding) { 993 throw new \ValueError( \sprintf($errorFormat, $encoding));1042 throw new \ValueError(sprintf($errorFormat, $encoding)); 994 1043 } 995 1044 } -
full-text-search/trunk/vendor/symfony/polyfill-mbstring/bootstrap.php
r3138583 r3265371 145 145 } 146 146 147 if (!function_exists('mb_trim')) { 148 function mb_trim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_trim($string, $characters, $encoding); } 149 } 150 151 if (!function_exists('mb_ltrim')) { 152 function mb_ltrim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_ltrim($string, $characters, $encoding); } 153 } 154 155 if (!function_exists('mb_rtrim')) { 156 function mb_rtrim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_rtrim($string, $characters, $encoding); } 157 } 158 159 147 160 if (extension_loaded('mbstring')) { 148 161 return; -
full-text-search/trunk/vendor/symfony/polyfill-mbstring/bootstrap80.php
r3138583 r3265371 94 94 } 95 95 if (!function_exists('mb_get_info')) { 96 function mb_get_info(?string $type = 'all'): array|string|int|false { return p\Mbstring::mb_get_info((string) $type); }96 function mb_get_info(?string $type = 'all'): array|string|int|false|null { return p\Mbstring::mb_get_info((string) $type); } 97 97 } 98 98 if (!function_exists('mb_http_output')) { … … 141 141 } 142 142 143 if (!function_exists('mb_trim')) { 144 function mb_trim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_trim($string, $characters, $encoding); } 145 } 146 147 if (!function_exists('mb_ltrim')) { 148 function mb_ltrim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_ltrim($string, $characters, $encoding); } 149 } 150 151 if (!function_exists('mb_rtrim')) { 152 function mb_rtrim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_rtrim($string, $characters, $encoding); } 153 } 154 143 155 if (extension_loaded('mbstring')) { 144 156 return;
Note: See TracChangeset
for help on using the changeset viewer.