[core] Backported str_starts_with, str_ends_with and str_contains from php 8 (#2318)

This commit is contained in:
Eugene Molotov 2021-10-30 01:06:04 +05:00 committed by GitHub
parent 9254d14f50
commit b86ed70376
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 34 additions and 10 deletions

View file

@ -80,6 +80,7 @@ require_once PATH_LIB . 'XPathAbstract.php';
require_once PATH_LIB . 'html.php';
require_once PATH_LIB . 'error.php';
require_once PATH_LIB . 'contents.php';
require_once PATH_LIB . 'php8backports.php';
// Vendor
define('MAX_FILE_SIZE', 10000000); /* Allow larger files for simple_html_dom */