Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /usr/local/src/php7/php-7.0.5/ext/json/tests/ |
Current File : //usr/local/src/php7/php-7.0.5/ext/json/tests/001.phpt |
--TEST-- json_decode() tests --SKIPIF-- <?php if (!extension_loaded("json")) print "skip"; ?> --FILE-- <?php var_dump(json_decode()); var_dump(json_decode("")); var_dump(json_decode("", 1)); var_dump(json_decode("", 0)); var_dump(json_decode(".", 1)); var_dump(json_decode(".", 0)); var_dump(json_decode("<?>")); var_dump(json_decode(";")); var_dump(json_decode("руссиш")); var_dump(json_decode("blah")); var_dump(json_decode(NULL)); var_dump(json_decode('{ "test": { "foo": "bar" } }')); var_dump(json_decode('{ "test": { "foo": "" } }')); var_dump(json_decode('{ "": { "foo": "" } }')); var_dump(json_decode('{ "": { "": "" } }')); var_dump(json_decode('{ "": { "": "" }')); var_dump(json_decode('{ "": "": "" } }')); ?> ===DONE=== --EXPECTF-- Warning: json_decode() expects at least 1 parameter, 0 given in %s on line %d NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL object(stdClass)#%d (1) { ["test"]=> object(stdClass)#%d (1) { ["foo"]=> string(3) "bar" } } object(stdClass)#%d (1) { ["test"]=> object(stdClass)#%d (1) { ["foo"]=> string(0) "" } } object(stdClass)#%d (1) { ["_empty_"]=> object(stdClass)#%d (1) { ["foo"]=> string(0) "" } } object(stdClass)#%d (1) { ["_empty_"]=> object(stdClass)#%d (1) { ["_empty_"]=> string(0) "" } } NULL NULL ===DONE===
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare