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
F12839274: D20942.id49900.diff
Thu, Mar 28, 7:16 PM
Unknown Object (File)
Feb 10 2024, 11:56 PM
Unknown Object (File)
Feb 3 2024, 11:30 PM
Unknown Object (File)
Dec 22 2023, 11:41 AM
Unknown Object (File)
Dec 11 2023, 10:20 AM
Unknown Object (File)
Dec 2 2023, 3:02 PM
Unknown Object (File)
Nov 30 2023, 2:21 AM
Unknown Object (File)
Nov 25 2023, 10:53 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