6424ecbe7609c0107f09ce224f0a934803357152
[m6w6/ext-http] / tests / send_failed_precond_001.phpt
1 --TEST--
2 http_send() failed precondition
3 --SKIPIF--
4 <?php
5 include 'skip.inc';
6 checkcgi();
7 checkver(5.1);
8 ?>
9 --FILE--
10 <?php
11 $_SERVER['HTTP_RANGE'] = 'bytes=0-1';
12 $_SERVER['HTTP_IF_UNMODIFIED_SINCE'] = http_date(10000);
13 http_cache_last_modified();
14 http_send_file(__FILE__);
15 ?>
16 --EXPECTF--
17 Status: 412
18 X-Powered-By: %s
19 Cache-Control: private, must-revalidate, max-age=0
20 Last-Modified: %s
21 Accept-Ranges: bytes
22 Content-type: text/html