Page MenuHomePhabricator

Utilize `phutil_json_decode`
ClosedPublic

Authored by joshuaspence on Apr 5 2015, 9:40 AM.
Tags
None
Referenced Files
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
F13204304: D12284.id29506.diff
Wed, May 15, 12:28 AM
F13204112: D12284.id.diff
Wed, May 15, 12:21 AM
F13203661: D12284.diff
Tue, May 14, 11:58 PM
Unknown Object (File)
Fri, May 3, 9:08 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.