Page MenuHomePhabricator

Utilize `phutil_json_decode`
ClosedPublic

Authored by joshuaspence on Apr 5 2015, 9:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Dec 29, 11:35 AM
Unknown Object (File)
Thu, Dec 26, 9:34 AM
Unknown Object (File)
Tue, Dec 17, 10:57 PM
Unknown Object (File)
Dec 9 2024, 6:38 PM
Unknown Object (File)
Nov 28 2024, 11:57 AM
Unknown Object (File)
Nov 24 2024, 12:49 PM
Unknown Object (File)
Oct 23 2024, 6:31 AM
Unknown Object (File)
Oct 21 2024, 3:59 AM
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 5128
Build 5146: [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.