Ran
|
Files
107
|
Run time
26s
|
Badge
Embed ▾
README BADGES
|
travis-ci
PHP 7.4/RemovedFunctions: handle deprecated restore_include_path() > This function is essentially an “alias” of doing `ini_restore('include_path')`. Unlike other functions like `restore_error_handler()` or `restore_exception_handler()`, this function does not operate on a stack and always resets to the original/initial value. While you can use `set_error_handler()` and `restore_error_handler()` as a pair, doing the same with `set_include_path() and `restore_include_path()` is not safe. As such, this function does not offer any benefit over `ini_restore('include_path')` and just causes wrong expectations. > > Proposal: Mark `restore_include_path()` as deprecated. This function is expected to be removed in PHP 8.0. Refs: * https://wiki.php.net/rfc/deprecations_php_7_4#restore_include_path_function * https://github.com/php/php-src/pull/4390 * https://github.com/php/php-src/commit/964de035a
3876 of 4271 relevant lines covered (90.75%)
5.02 hits per line
Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
---|