fixed config.w32 for build with curl enabled
[m6w6/ext-http] / tests / response004.phpt
1 --TEST--
2 reponse 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 --EXPECTHEADERS--
24 Accept-Ranges: bytes
25 Cache-Control: public,must-revalidate,max-age=0
26 ETag: "9ef61f95"
27 --EXPECTF--
28 foobar