X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=tests%2Fparams006.phpt;fp=tests%2Fparams006.phpt;h=5c6455c7d20ca9dd840022227741ecf496fa8f1f;hp=0000000000000000000000000000000000000000;hb=c329d4dabccd5caff9869d88be4e14f477e028b6;hpb=e1de6f2d6a6f2e2707c1b4998317e457ed8de4a4 diff --git a/tests/params006.phpt b/tests/params006.phpt new file mode 100644 index 0000000..5c6455c --- /dev/null +++ b/tests/params006.phpt @@ -0,0 +1,29 @@ +--TEST-- +escaped params +--SKIPIF-- + +--FILE-- + array( + "value" => true, + "arguments" => array( + "name" => "upload", + "filename" => "trick\"\0\"ed" + ) + ) +); +var_dump($c === $p->params); +var_dump("form-data;name=upload;filename=\"trick\\\"\\0\\\"ed\"" === (string) $p); +?> +DONE +--EXPECT-- +Test +bool(true) +bool(true) +DONE