Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- Bug #68938 (json_decode() decodes empty string without indicating error) --FILE--..
Decoded Output download
--TEST--
Bug #68938 (json_decode() decodes empty string without indicating error)
--FILE--
<?php
json_decode("");
var_dump(json_last_error());
?>
--EXPECT--
int(4)
Did this file decode correctly?
Original Code
--TEST--
Bug #68938 (json_decode() decodes empty string without indicating error)
--FILE--
<?php
json_decode("");
var_dump(json_last_error());
?>
--EXPECT--
int(4)
Function Calls
json_decode | 1 |
Stats
MD5 | eced89ae3741a66be35eb1931aa1882c |
Eval Count | 0 |
Decode Time | 69 ms |