diff options
| author | kkadosh | 2018-02-27 16:40:00 +0000 |
|---|---|---|
| committer | jvoisin | 2018-02-27 17:40:00 +0100 |
| commit | 9e769944ff07e39f3890f192e9bb8c57a8cef54c (patch) | |
| tree | 458ec4bd3bde2cf69fc4bdb94a690fbb68508425 /src/tests/dump_request.phpt | |
| parent | 55d9defebd7f6fe34bc6fa49cce61e385df21059 (diff) | |
Implements .dump() for unserialize and fix some related tests
Diffstat (limited to 'src/tests/dump_request.phpt')
| -rw-r--r-- | src/tests/dump_request.phpt | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/tests/dump_request.phpt b/src/tests/dump_request.phpt index 9798b7f..23cafdc 100644 --- a/src/tests/dump_request.phpt +++ b/src/tests/dump_request.phpt | |||
| @@ -23,17 +23,18 @@ sp.configuration_file={PWD}/config/dump_request.ini | |||
| 23 | <?php | 23 | <?php |
| 24 | @mkdir("/tmp/dump_result/"); | 24 | @mkdir("/tmp/dump_result/"); |
| 25 | echo "1\n"; | 25 | echo "1\n"; |
| 26 | echo system("echo 1337;"); | 26 | system("echo 1337;"); |
| 27 | $filename = glob('/tmp/dump_result/sp_dump.*')[0]; | 27 | $filename = glob('/tmp/dump_result/sp_dump.*')[0]; |
| 28 | $res = file($filename); | 28 | $res = file($filename); |
| 29 | if ($res[1] != "GET:get_a=data_get_a&get_b=data_get_b\n") { | 29 | if ($res[2] != "GET:get_a='data_get_a' get_b='data_get_b' \n") { |
| 30 | echo "1\n"; | 30 | echo "1\n"; |
| 31 | } elseif ($res[2] != "POST:post_a=data_post_a&post_b=data_post_b\n") { | 31 | } elseif ($res[3] != "POST:post_a='data_post_a' post_b='data_post_b' \n") { |
| 32 | echo "2\n"; | 32 | echo "2\n"; |
| 33 | } elseif ($res[3] != "COOKIE:cookie_a=data_cookie_a&cookie_b=data_cookie_b\n") { | 33 | } elseif ($res[4] != "COOKIE:cookie_a='data_cookie_a&cookie_b=data_cookie_b' \n") { |
| 34 | echo "3\n"; | 34 | echo "3\n"; |
| 35 | } | 35 | } |
| 36 | ?> | 36 | ?> |
| 37 | --EXPECTF-- | 37 | --EXPECTF-- |
| 38 | 1 | 38 | 1 |
| 39 | [snuffleupagus][0.0.0.0][disabled_function][drop] The call to the function 'system' in %a/dump_request.php:%d has been disabled. | 39 | [snuffleupagus][0.0.0.0][disabled_function][simulation] The call to the function 'system' in %a/dump_request.php:%d has been disabled. |
| 40 | 1337 | ||
