projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
- doc fixes
[m6w6/ext-http]
/
tests
/
send_failed_precond_002.phpt
1
--TEST--
2
http_send() failed precondition
3
--SKIPIF--
4
<?php
5
include 'skip.inc';
6
checkcgi();
7
checkmax(5);
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