Commit 138ba870 authored by epriestley's avatar epriestley
Browse files

Guard call to "get_magic_quotes_gpc()" with "@" to silence PHP 7.4+ warning

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:
parent db6b4ca4
......@@ -523,7 +523,7 @@ final class PhabricatorStartup {
if (get_magic_quotes_gpc()) {
if (@get_magic_quotes_gpc()) {
"Your server is configured with PHP 'magic_quotes_gpc' enabled. This ".
"feature is 'highly discouraged' by PHP's developers and you must ".
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment