Skip to content
Snippets Groups Projects
Commit d50dc973 authored by Spokje's avatar Spokje Committed by Joël Pittet
Browse files

Issue #3104226 by Spokje, ravikk-drupal, Rajat Charde, knyshuk.vova: Make phpcs ignore safe_mode

parent 5addb81d
No related branches found
No related tags found
No related merge requests found
...@@ -429,6 +429,7 @@ function http_request_use_curl() { ...@@ -429,6 +429,7 @@ function http_request_use_curl() {
// cURL below PHP 5.6.0 must not have open_basedir or safe_mode enabled. // cURL below PHP 5.6.0 must not have open_basedir or safe_mode enabled.
if (version_compare(PHP_VERSION, '5.6.0', '<')) { if (version_compare(PHP_VERSION, '5.6.0', '<')) {
// phpcs:ignore PHPCompatibility.IniDirectives.RemovedIniDirectives.safe_modeDeprecatedRemoved
return !ini_get('safe_mode') && !ini_get('open_basedir'); return !ini_get('safe_mode') && !ini_get('open_basedir');
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment