Page MenuHomePhabricator

Fix "PhutilOpaqueEnvelopeTestCase" under PHP 7.4 with "zend.exception_ignore_args"
ClosedPublic

Authored by epriestley on Sep 30 2020, 2:48 PM.
Tags
None
Referenced Files
F19507622: D21473.diff
Fri, Jan 9, 10:17 PM
F19446337: D21473.diff
Mon, Dec 29, 2:56 PM
F19016238: D21473.diff
Nov 23 2025, 3:12 AM
F18851198: D21473.id51111.diff
Oct 30 2025, 10:56 PM
F18818010: D21473.id.diff
Oct 21 2025, 8:16 PM
F18764209: D21473.id51111.diff
Oct 7 2025, 4:47 AM
F18714655: D21473.diff
Sep 29 2025, 8:35 AM
F18628797: D21473.diff
Sep 16 2025, 7:18 AM
Subscribers
None

Details

Summary

See PHI1894. PHP 7.4 introduced a new runtime configuration option, "zend.exception_ignore_args", which removes the "args" from exception backtraces.

The "PhutilOpaqueEnvelopeTestCase" relies on this behavior (since it explicitly inspects stack frames). Although the test isn't critical and could be restructured, it seems like there is little value to ever enabling this option in the context of Phabricator.

Disable it at startup so environments are more consistent across different PHP versions and configurations.

Test Plan
  • Enabled "zend.exception_ignore_args" under PHP 7.4.
  • Ran "PhutilOpaqueEnvelopeTestCase".
  • Before: failure, expected signpost value not present in stack trace (because no "args" are present on the exception).
  • After: test passes.

Diff Detail

Repository
rARC Arcanist
Branch
xdebug1
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 24926
Build 34388: Run Core Tests
Build 34387: arc lint + arc unit

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Sep 30 2020, 2:49 PM
epriestley requested review of this revision.
This revision was automatically updated to reflect the committed changes.