Page MenuHomePhabricator

Utilize `phutil_json_decode`
ClosedPublic

Authored by joshuaspence on Apr 5 2015, 9:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 3, 9:08 AM
Unknown Object (File)
Thu, Apr 25, 2:47 AM
Unknown Object (File)
Thu, Apr 11, 10:04 AM
Unknown Object (File)
Apr 1 2024, 8:18 AM
Unknown Object (File)
Mar 28 2024, 10:50 AM
Unknown Object (File)
Mar 15 2024, 2:22 PM
Unknown Object (File)
Feb 14 2024, 12:29 AM
Unknown Object (File)
Feb 11 2024, 9:33 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.