Page MenuHomePhabricator

Utilize `phutil_json_decode`
ClosedPublic

Authored by joshuaspence on Apr 5 2015, 9:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
May 7 2025, 4:56 AM
Unknown Object (File)
Apr 29 2025, 5:23 AM
Unknown Object (File)
Apr 27 2025, 12:09 AM
Unknown Object (File)
Apr 25 2025, 4:44 PM
Unknown Object (File)
Apr 23 2025, 2:00 PM
Unknown Object (File)
Apr 23 2025, 12:56 PM
Unknown Object (File)
Apr 22 2025, 1:24 PM
Unknown Object (File)
Apr 10 2025, 2:55 PM
Subscribers

Details

Summary

Use phutil_json_decode instead of json_decode to throw a more tailored exception.

Test Plan

Broke xhpast to return invalid JSON... saw a PhutilProxyException thrown.

Diff Detail

Repository
rPHU libphutil
Branch
master
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 5142
Build 5160: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

joshuaspence retitled this revision from to Utilize `phutil_json_decode`.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
This revision is now accepted and ready to land.Apr 5 2015, 12:20 PM
This revision was automatically updated to reflect the committed changes.