From 138ba87031475e04b134be47956fc077021437f0 Mon Sep 17 00:00:00 2001 From: epriestley Date: Tue, 14 Jan 2020 12:17:08 -0800 Subject: [PATCH] Guard call to "get_magic_quotes_gpc()" with "@" to silence PHP 7.4+ warning Summary: Fixes T13471. Recent versions of PHP raise a warning when this function is called. We're only calling it so we can instantly fatal if it's enabled, so use "@" to silence the warning. Test Plan: Loaded site; see also T13471 for a user reporting that this fix is effective. Maniphest Tasks: T13471 Differential Revision: https://secure.phabricator.com/D20942 --- support/startup/PhabricatorStartup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/startup/PhabricatorStartup.php b/support/startup/PhabricatorStartup.php index 4c577ca20c..c166162310 100644 --- a/support/startup/PhabricatorStartup.php +++ b/support/startup/PhabricatorStartup.php @@ -523,7 +523,7 @@ final class PhabricatorStartup { "'{$required_version}'."); } - if (get_magic_quotes_gpc()) { + if (@get_magic_quotes_gpc()) { self::didFatal( "Your server is configured with PHP 'magic_quotes_gpc' enabled. This ". "feature is 'highly discouraged' by PHP's developers and you must ".