Homec4science

Fix incorrect call to json_encode()

Authored by epriestley <git@epriestley.com> on Jul 1 2011, 15:49.

Description

Fix incorrect call to json_encode()

Summary: I confused this with the signature of json_decode() when I wrote this.
PHP 5.2 json_encode() takes only one parameter, and PHP 5.3 json_encode() takes
a flags bitmask, so this call is strictly incorrect on all versions of PHP.
Test Plan: scrutinized http://us.php.net/manual/en/function.json-encode.php
Reviewed By: jungejason
Reviewers: davidreuss, jungejason, tuomaspelkonen, aran
CC: aran, jungejason
Differential Revision: 573

Details

Committed
epriestley <git@epriestley.com>Jul 3 2011, 21:12
Pushed
aubortMar 17 2017, 12:03
Parents
rPHU62b5a604ef4a: Make libphutil scripts exit with an error code when terminated by an uncaught…
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHU58f00b9b82f7: Fix incorrect call to json_encode() (authored by epriestley <git@epriestley.com>).Jul 3 2011, 21:12