Page MenuHomePhabricator

Test if "get_magic_quotes_gpc()" exists before calling it
ClosedPublic

Authored by epriestley on Feb 8 2021, 5:29 PM.
Tags
None
Referenced Files
F15492499: D21549.id51294.diff
Sat, Apr 12, 3:07 PM
F15491524: D21549.id51295.diff
Sat, Apr 12, 4:36 AM
F15490306: D21549.id.diff
Fri, Apr 11, 4:07 PM
F15486024: D21549.diff
Thu, Apr 10, 4:25 AM
F15457348: D21549.id51295.diff
Sun, Mar 30, 3:50 PM
F15455489: D21549.id51294.diff
Sun, Mar 30, 12:46 AM
F15451104: D21549.diff
Fri, Mar 28, 8:09 PM
F15418789: D21549.diff
Fri, Mar 21, 1:29 AM
Subscribers
None

Details

Summary

Ref T13588. This function was deprecated in PHP 7.4 (see D20942) and removed in PHP8.

Test that it exists before calling it so we don't fatal in PHP8.

See https://discourse.phabricator-community.org/t/daemon-fails-on-php-8-0-2-in-utils-php-array-merge-call-w-fix/4568.

Test Plan

Used "|| true" to test the message in PHP7. No actual testing in PHP8, but a user reports a similar patch works.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Feb 8 2021, 5:34 PM
This revision was automatically updated to reflect the committed changes.