1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-22 21:40:55 +01:00

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
This commit is contained in:
epriestley 2020-01-14 12:17:08 -08:00
parent db6b4ca480
commit 138ba87031

View file

@ -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 ".