Page MenuHomePhabricator

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

Authored by epriestley on Jan 14 2020, 8:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jun 19, 1:17 PM
Unknown Object (File)
Thu, Jun 19, 7:09 AM
Unknown Object (File)
Mon, Jun 16, 11:36 PM
Unknown Object (File)
Fri, Jun 13, 12:34 AM
Unknown Object (File)
Fri, Jun 13, 12:34 AM
Unknown Object (File)
Thu, Jun 5, 4:44 PM
Unknown Object (File)
May 5 2025, 11:53 AM
Unknown Object (File)
Apr 23 2025, 5:15 PM
Subscribers
None

Details

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.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable