Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.119
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
php-7.4.33 /
ext /
json /
tests /
Delete
Unzip
Name
Size
Permission
Date
Action
001.phpt
1.29
KB
-rw-rw-r--
2022-10-31 11:36
002.phpt
805
B
-rw-rw-r--
2022-10-31 11:36
003.phpt
590
B
-rw-rw-r--
2022-10-31 11:36
004.phpt
596
B
-rw-rw-r--
2022-10-31 11:36
005.phpt
280
B
-rw-rw-r--
2022-10-31 11:36
006.phpt
881
B
-rw-rw-r--
2022-10-31 11:36
007.phpt
885
B
-rw-rw-r--
2022-10-31 11:36
008.phpt
416
B
-rw-rw-r--
2022-10-31 11:36
009.phpt
317
B
-rw-rw-r--
2022-10-31 11:36
bug40503.phpt
501
B
-rw-rw-r--
2022-10-31 11:36
bug41034.phpt
310
B
-rw-rw-r--
2022-10-31 11:36
bug41067.phpt
523
B
-rw-rw-r--
2022-10-31 11:36
bug41403.phpt
667
B
-rw-rw-r--
2022-10-31 11:36
bug41504.phpt
546
B
-rw-rw-r--
2022-10-31 11:36
bug41567.phpt
311
B
-rw-rw-r--
2022-10-31 11:36
bug42090.phpt
408
B
-rw-rw-r--
2022-10-31 11:36
bug42785.phpt
678
B
-rw-rw-r--
2022-10-31 11:36
bug43941.phpt
458
B
-rw-rw-r--
2022-10-31 11:36
bug45791.phpt
250
B
-rw-rw-r--
2022-10-31 11:36
bug46215.phpt
339
B
-rw-rw-r--
2022-10-31 11:36
bug46944.phpt
680
B
-rw-rw-r--
2022-10-31 11:36
bug47644.phpt
617
B
-rw-rw-r--
2022-10-31 11:36
bug50224.phpt
1.7
KB
-rw-rw-r--
2022-10-31 11:36
bug53946.phpt
830
B
-rw-rw-r--
2022-10-31 11:36
bug54058.phpt
972
B
-rw-rw-r--
2022-10-31 11:36
bug54484.phpt
491
B
-rw-rw-r--
2022-10-31 11:36
bug55543.phpt
286
B
-rw-rw-r--
2022-10-31 11:36
bug61537.phpt
1.04
KB
-rw-rw-r--
2022-10-31 11:36
bug61978.phpt
814
B
-rw-rw-r--
2022-10-31 11:36
bug62010.phpt
359
B
-rw-rw-r--
2022-10-31 11:36
bug62369.phpt
586
B
-rw-rw-r--
2022-10-31 11:36
bug63737.phpt
826
B
-rw-rw-r--
2022-10-31 11:36
bug64695.phpt
337
B
-rw-rw-r--
2022-10-31 11:36
bug64874_part1.phpt
1.44
KB
-rw-rw-r--
2022-10-31 11:36
bug64874_part2.phpt
875
B
-rw-rw-r--
2022-10-31 11:36
bug66021.phpt
330
B
-rw-rw-r--
2022-10-31 11:36
bug66025.phpt
367
B
-rw-rw-r--
2022-10-31 11:36
bug68546.phpt
558
B
-rw-rw-r--
2022-10-31 11:36
bug68567.phpt
292
B
-rw-rw-r--
2022-10-31 11:36
bug68817.phpt
230
B
-rw-rw-r--
2022-10-31 11:36
bug68938.phpt
229
B
-rw-rw-r--
2022-10-31 11:36
bug68992.phpt
607
B
-rw-rw-r--
2022-10-31 11:36
bug69187.phpt
824
B
-rw-rw-r--
2022-10-31 11:36
bug71835.phpt
603
B
-rw-rw-r--
2022-10-31 11:36
bug72069.phpt
597
B
-rw-rw-r--
2022-10-31 11:36
bug72787.phpt
356
B
-rw-rw-r--
2022-10-31 11:36
bug73113.phpt
527
B
-rw-rw-r--
2022-10-31 11:36
bug73254.phpt
434
B
-rw-rw-r--
2022-10-31 11:36
bug73991.phpt
581
B
-rw-rw-r--
2022-10-31 11:36
bug77843.phpt
518
B
-rw-rw-r--
2022-10-31 11:36
fail001.phpt
4.87
KB
-rw-rw-r--
2022-10-31 11:36
inf_nan_error.phpt
905
B
-rw-rw-r--
2022-10-31 11:36
json_decode_basic.phpt
2.5
KB
-rw-rw-r--
2022-10-31 11:36
json_decode_error.phpt
1.07
KB
-rw-rw-r--
2022-10-31 11:36
json_decode_exceptions.phpt
966
B
-rw-rw-r--
2022-10-31 11:36
json_decode_invalid_utf8.phpt
976
B
-rw-rw-r--
2022-10-31 11:36
json_encode_basic.phpt
2.58
KB
-rw-rw-r--
2022-10-31 11:36
json_encode_basic_utf8.phpt
607
B
-rw-rw-r--
2022-10-31 11:36
json_encode_exceptions.phpt
1.31
KB
-rw-rw-r--
2022-10-31 11:36
json_encode_invalid_utf8.phpt
766
B
-rw-rw-r--
2022-10-31 11:36
json_encode_numeric.phpt
580
B
-rw-rw-r--
2022-10-31 11:36
json_encode_pretty_print.phpt
612
B
-rw-rw-r--
2022-10-31 11:36
json_encode_u2028_u2029.phpt
1.31
KB
-rw-rw-r--
2022-10-31 11:36
json_encode_unescaped_slashes.phpt
244
B
-rw-rw-r--
2022-10-31 11:36
json_exceptions_error_clearing.phpt
1.02
KB
-rw-rw-r--
2022-10-31 11:36
json_last_error_error.phpt
432
B
-rw-rw-r--
2022-10-31 11:36
json_last_error_msg_error.phpt
470
B
-rw-rw-r--
2022-10-31 11:36
pass001.1.phpt
18.97
KB
-rw-rw-r--
2022-10-31 11:36
pass001.1_64bit.phpt
19.02
KB
-rw-rw-r--
2022-10-31 11:36
pass001.phpt
14.32
KB
-rw-rw-r--
2022-10-31 11:36
pass002.phpt
6.83
KB
-rw-rw-r--
2022-10-31 11:36
pass003.phpt
2.14
KB
-rw-rw-r--
2022-10-31 11:36
serialize.phpt
1.99
KB
-rw-rw-r--
2022-10-31 11:36
unsupported_type_error.phpt
564
B
-rw-rw-r--
2022-10-31 11:36
Save
Rename
--TEST-- Test json_encode() function : basic functionality --SKIPIF-- <?php if (!extension_loaded("json")) print "skip"; ?> --FILE-- <?php echo "*** Testing json_encode() : basic functionality ***\n"; //get an unset variable $unset_var = 10; unset ($unset_var); // get a resource variable $fp = fopen(__FILE__, "r"); // get an object class sample { } $obj = new sample(); $obj->MyInt = 99; $obj->MyFloat = 123.45; $obj->MyBool = true; $obj->MyNull = null; $obj->MyString = "Hello World"; // array with different values for $string $inputs = array ( // integers 0, 123, -123, 2147483647, -2147483648, // floats 123.456, 1.23E3, -1.23E3, // boolean TRUE, true, FALSE, false, // NULL NULL, null, // strings "abc", 'abc', "Hello\t\tWorld\n", // arrays array(), array(1,2,3,4,5), array(1 => "Sun", 2 => "Mon", 3 => "Tue", 4 => "Wed", 5 => "Thur", 6 => "Fri", 7 => "Sat"), array("Jan" => 31, "Feb" => 29, "Mar" => 31, "April" => 30, "May" => 31, "June" => 30), // empty data "", '', // undefined data @$undefined_var, // unset data @$unset_var, // resource variable $fp, // object variable $obj ); // loop through with each element of the $inputs array to test json_encode() function $count = 1; foreach($inputs as $input) { echo "-- Iteration $count --\n"; var_dump(json_encode($input)); $count ++; } ?> ===Done=== --EXPECT-- *** Testing json_encode() : basic functionality *** -- Iteration 1 -- string(1) "0" -- Iteration 2 -- string(3) "123" -- Iteration 3 -- string(4) "-123" -- Iteration 4 -- string(10) "2147483647" -- Iteration 5 -- string(11) "-2147483648" -- Iteration 6 -- string(7) "123.456" -- Iteration 7 -- string(4) "1230" -- Iteration 8 -- string(5) "-1230" -- Iteration 9 -- string(4) "true" -- Iteration 10 -- string(4) "true" -- Iteration 11 -- string(5) "false" -- Iteration 12 -- string(5) "false" -- Iteration 13 -- string(4) "null" -- Iteration 14 -- string(4) "null" -- Iteration 15 -- string(5) ""abc"" -- Iteration 16 -- string(5) ""abc"" -- Iteration 17 -- string(18) ""Hello\t\tWorld\n"" -- Iteration 18 -- string(2) "[]" -- Iteration 19 -- string(11) "[1,2,3,4,5]" -- Iteration 20 -- string(72) "{"1":"Sun","2":"Mon","3":"Tue","4":"Wed","5":"Thur","6":"Fri","7":"Sat"}" -- Iteration 21 -- string(58) "{"Jan":31,"Feb":29,"Mar":31,"April":30,"May":31,"June":30}" -- Iteration 22 -- string(2) """" -- Iteration 23 -- string(2) """" -- Iteration 24 -- string(4) "null" -- Iteration 25 -- string(4) "null" -- Iteration 26 -- bool(false) -- Iteration 27 -- string(82) "{"MyInt":99,"MyFloat":123.45,"MyBool":true,"MyNull":null,"MyString":"Hello World"}" ===Done===