1--TEST--
2enable_post_data_reading: seeking in php://input
3--INI--
4enable_post_data_reading=1
5--POST_RAW--
6Content-Type: application/unknown
70123456789
8--FILE--
9<?php
10echo "Test\n";
11
12$f1 = fopen("php://input", "r");
13fseek($f1, 3, SEEK_SET);
14echo fgetc($f1);
15fseek($f1, 1, SEEK_SET);
16echo fgetc($f1);
17fseek($f1, 3, SEEK_CUR);
18echo fgetc($f1);
19fseek($f1, -3, SEEK_CUR);
20echo fgetc($f1);
21fseek($f1, 3, SEEK_END);
22echo fgetc($f1);
23fseek($f1, -3, SEEK_END);
24$f2 = fopen("php://input", "r");
25fseek($f2, 1, SEEK_SET);
26echo fgetc($f1);
27echo fgetc($f2);
28?>
29
30Done
31--EXPECT--
32Test
33315371
34Done
35