Page MenuHomePhabricator

Utilize `phutil_json_decode`
ClosedPublic

Authored by joshuaspence on Apr 5 2015, 9:40 AM.
Tags
None
Referenced Files
F14791839: D12284.diff
Fri, Jan 24, 10:34 PM
F14787905: D12284.id29506.diff
Fri, Jan 24, 4:26 PM
Unknown Object (File)
Wed, Jan 22, 12:23 PM
Unknown Object (File)
Fri, Jan 10, 5:56 AM
Unknown Object (File)
Fri, Jan 10, 5:20 AM
Unknown Object (File)
Sun, Dec 29, 11:35 AM
Unknown Object (File)
Thu, Dec 26, 9:34 AM
Unknown Object (File)
Dec 17 2024, 10:57 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.