coverity fix
[m6w6/ext-http] / tests / envresponse004.phpt
1 --TEST--
2 env response callback
3 --SKIPIF--
4 <?php
5 include "skipif.inc";
6 if (version_compare(PHP_VERSION, "5.4.0", "<")) die("SKIP 5.3 ob is broken");
7 ?>
8 --GET--
9 dummy=1
10 --FILE--
11 <?php
12
13 $r = new http\Env\Response;
14 $r->setCacheControl("public,must-revalidate,max-age=0");
15 $r->setThrottleRate(1, 0.1);
16 ob_start($r);
17
18 echo "foo";
19 echo "bar";
20
21 ob_end_flush();
22 $r->send();
23 ?>
24 --EXPECTHEADERS--
25 Accept-Ranges: bytes
26 Cache-Control: public,must-revalidate,max-age=0
27 ETag: "9ef61f95"
28 --EXPECTF--
29 foobar