-
Task
-
Resolution: Fixed
-
Minor
-
3.6, 3.7
-
MOODLE_36_STABLE, MOODLE_37_STABLE
-
MOODLE_36_STABLE
-
The explicit usage of the constants FILTER_FLAG_SCHEME_REQUIRED and
FILTER_FLAG_HOST_REQUIRED is now deprecated; both are implied for
FILTER_VALIDATE_URL anyway.
We have 2 uses of this is core:
lib/typo3/class.t3lib_div.php
|
1530: return (filter_var($IDN->encode($url), FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED) !== FALSE);
|
|
lib/phpmailer/src/PHPMailer.php
|
3581: if (filter_var('http://' . $host, FILTER_VALIDATE_URL, FILTER_FLAG_HOST_REQUIRED)) {
|
Need to see if it's reachable code and get rid of the deprecated flags (since 5.2!) to avoid this added PHP Deprecated warning:
PHP Deprecated: filter_var(): explicit use of FILTER_FLAG_SCHEME_REQUIRED and FILTER_FLAG_HOST_REQUIRED is deprecated in xxxx
|