File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / basic / 031.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:48:06 2012 UTC (12 years, 10 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_3elwix, v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17p0, v5_4_17, v5_3_10, HEAD
php

--TEST--
Bug#55504 (Content-Type header is not parsed correctly on HTTP POST request)
--INI--
file_uploads=1
--POST_RAW--
Content-Type: multipart/form-data; boundary=BVoyv; charset=iso-8859-1
--BVoyv
Content-Disposition: form-data; name="data"

abc
--BVoyv
Content-Disposition: form-data; name="data2"

more data
--BVoyv
Content-Disposition: form-data; name="data3"

even more data
--BVoyv--
--FILE--
<?php
var_dump($_POST);
?>
--EXPECT--
array(3) {
  ["data"]=>
  string(3) "abc"
  ["data2"]=>
  string(9) "more data"
  ["data3"]=>
  string(14) "even more data"
}

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>