diff options
author | Kai Schroeder <k.schroeder@php.net> | 2010-07-17 21:26:01 +0000 |
---|---|---|
committer | Kai Schroeder <k.schroeder@php.net> | 2010-07-17 21:26:01 +0000 |
commit | ede218d54c9b3e746ace934bda07e50e26cdb584 (patch) | |
tree | c0a221aec22c8d2b0a8f8362927d352a578db61d /ext | |
parent | a30113b617e98eabe94b02b4fa82387d462a4f8c (diff) | |
download | php-git-ede218d54c9b3e746ace934bda07e50e26cdb584.tar.gz |
Test for #52359
Diffstat (limited to 'ext')
-rw-r--r-- | ext/standard/tests/http/bug52359.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/standard/tests/http/bug52359.phpt b/ext/standard/tests/http/bug52359.phpt new file mode 100644 index 0000000000..a2d93d2fb6 --- /dev/null +++ b/ext/standard/tests/http/bug52359.phpt @@ -0,0 +1,21 @@ +--TEST-- +Bug #52359 (http_build_query seem to encode array incorrectly) +--FILE-- +<?php +$a = array( + 'foo/bar' => array( + '1', + '2' + ), + 'bar' => 'foo' +); + +$b = http_build_query($a, NULL, '&'); +var_dump($b); + +$c = urldecode($b); +var_dump($c); +?> +--EXPECTF-- +string(43) "foo%2Fbar%5B%5D=1&foo%2Fbar%5B%5D=2&bar=foo" +string(31) "foo/bar[]=1&foo/bar[]=2&bar=foo"
\ No newline at end of file |