projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
coverity fix
[m6w6/ext-http]
/
tests
/
params006.phpt
1
--TEST--
2
escaped params
3
--SKIPIF--
4
<?php
5
include "skipif.inc";
6
?>
7
--FILE--
8
<?php
9
echo "Test\n";
10
11
$p = new http\Params("form-data; name=\"upload\"; filename=\"trick\\\"\0\\\"ed\"");
12
$c = array(
13
"form-data" => array(
14
"value" => true,
15
"arguments" => array(
16
"name" => "upload",
17
"filename" => "trick\"\0\"ed"
18
)
19
)
20
);
21
var_dump($c === $p->params);
22
var_dump("form-data;name=upload;filename=\"trick\\\"\\000\\\"ed\"" === (string) $p);
23
?>
24
DONE
25
--EXPECT--
26
Test
27
bool(true)
28
bool(true)
29
DONE