Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: knyshuk.vova at Internetdevels commentedComment #4
ravikk-drupal CreditAttribution: ravikk-drupal at TATA Consultancy Services for Pfizer, Inc. commentedComment #5
ravikk-drupal CreditAttribution: ravikk-drupal at TATA Consultancy Services for Pfizer, Inc. commentedThis patch #2 works for me. Screenshot attached for the same.
Comment #6
RajatC CreditAttribution: RajatC at TATA Consultancy Services for Pfizer, Inc. 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 CreditAttribution: RajatC at TATA Consultancy Services for Pfizer, Inc. commentedComment #8
joelpittetThanks @Spokje, I've committed this to the dev branch.
Comment #11
solideogloria CreditAttribution: solideogloria commented