summaryrefslogtreecommitdiff
path: root/tests/basic/enable_post_data_reading_05.phpt
blob: f6695f84c4f493a7748625da04a62c4465664b5c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--TEST--
enable_post_data_reading: using multiple input streams
--INI--
enable_post_data_reading=0
max_execution_time=2
--POST_RAW--
Content-Type: application/unknown
One line of data
--FILE--
<?php
echo "Test\n";

$f1 = fopen("php://input", "r");
$f2 = fopen("php://input", "r");

while (!feof($f1) && !feof($f2)) {
    echo fgetc($f1), fgetc($f2);
}

?>

Done
--EXPECT--
Test
OOnnee  lliinnee  ooff  ddaattaa
Done