In the related issue #2890859: PHP71 Compatibility issue with safe_mode it was already explained this code isn't harmful.
However doing a Code Sniff for PHP Compatibility still triggers:
FILE: feeds\libraries\http_request.inc
-------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-------------------------------------------------------------------------------------------------
432 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4
-------------------------------------------------------------------------------------------------
Whacking in a directive to make phpcs ignore that line would make my OCD happy...;)
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | feeds-PHPCompatibility-3104226_fixed.png | 61.69 KB | rajatc |
| #5 | feeds_phpcompatiblity_issue_fixed.png | 25.82 KB | ravikk-drupal |
| #2 | phpcs_ignore_safe_mode-3104226-2.patch | 523 bytes | spokje |
Comments
Comment #2
spokjeComment #3
knyshuk.vova commentedComment #4
ravikk-drupal commentedComment #5
ravikk-drupal commentedThis patch #2 works for me. Screenshot attached for the same.
Comment #6
rajatc commentedThis patch #2 works for me. Screenshot attached for the same.
https://www.drupal.org/files/issues/2020-05-15/feeds-PHPCompatibility-31...
Comment #7
rajatc commentedComment #8
joelpittetThanks @Spokje, I've committed this to the dev branch.
Comment #11
solideogloria commented