Page MenuHomePhabricator

Utilize `phutil_json_decode`
ClosedPublic

Authored by joshuaspence on Apr 5 2015, 9:40 AM.
Tags
None
Referenced Files
F13278785: D12284.diff
Sat, Jun 1, 5:02 AM
F13257511: D12284.id.diff
Sun, May 26, 2:10 AM
F13248023: D12284.diff
Fri, May 24, 12:28 AM
F13244331: D12284.diff
Thu, May 23, 4:43 AM
F13223542: D12284.diff
Sun, May 19, 4:42 AM
F13217849: D12284.id29506.diff
Sat, May 18, 8:30 AM
F13204306: D12284.id29507.diff
Wed, May 15, 12:28 AM
F13204305: D12284.id29487.diff
Wed, May 15, 12:28 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 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.