Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Explicit intish cast in json_decode
Summary: What it says on the tin Reviewed By: huntergoldstein Differential Revision: D13053395 fbshipit-source-id: 58c7acc447f911981af41d0e3654b260517ba420
- Loading branch information
Showing
with
46 additions
and 4 deletions.
- +12 −2 hphp/runtime/ext/json/JSON_parser.cpp
- +0 −2 hphp/runtime/ext/json/ext_json.cpp
- +6 −0 hphp/test/slow/dv_array/json-decode.php
- +6 −0 hphp/test/slow/dv_array/json-decode.php.expect
- +2 −0 hphp/test/slow/dv_array/json-decode.php.hphp_opts
- +2 −0 hphp/test/slow/dv_array/json-decode.php.opts
- +6 −0 hphp/test/slow/dv_array_hack_arr/json-decode.php
- +6 −0 hphp/test/slow/dv_array_hack_arr/json-decode.php.expect
- +3 −0 hphp/test/slow/dv_array_hack_arr/json-decode.php.hphp_opts
- +3 −0 hphp/test/slow/dv_array_hack_arr/json-decode.php.opts
@@ -0,0 +1,6 @@ | ||
<?hh | ||
|
||
<<__EntryPoint>> | ||
function main() { | ||
var_dump(json_decode("{\"1\": 1, \"2\": \"2\"}", true, 512, JSON_FB_DARRAYS)); | ||
} |
@@ -0,0 +1,6 @@ | ||
array(2) { | ||
[1]=> | ||
int(1) | ||
[2]=> | ||
string(1) "2" | ||
} |
@@ -0,0 +1,2 @@ | ||
-vRuntime.Eval.HackArrCompatNotices=1 | ||
-vRuntime.Eval.HackArrCompatCheckIntishCast=1 |
@@ -0,0 +1,2 @@ | ||
-vEval.HackArrCompatNotices=1 | ||
-vEval.HackArrCompatCheckIntishCast=1 |
@@ -0,0 +1,6 @@ | ||
<?hh | ||
|
||
<<__EntryPoint>> | ||
function main() { | ||
var_dump(json_decode("{\"1\": 1, \"2\": \"2\"}", true, 512, JSON_FB_DARRAYS)); | ||
} |
@@ -0,0 +1,6 @@ | ||
dict(2) { | ||
[1]=> | ||
int(1) | ||
[2]=> | ||
string(1) "2" | ||
} |
@@ -0,0 +1,3 @@ | ||
-vRuntime.Eval.HackArrCompatNotices=1 | ||
-vRuntime.Eval.HackArrCompatCheckIntishCast=1 | ||
-vRuntime.Eval.HackArrDVArrs=1 |
@@ -0,0 +1,3 @@ | ||
-vEval.HackArrCompatNotices=1 | ||
-vEval.HackArrCompatCheckIntishCast=1 | ||
-vEval.HackArrDVArrs=1 |