projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
- removed error prone macros, fixes bug #10151 (build fails dynamic linking on Mac...
[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
--ENV--
10
HTTP_RANGE=bytes=0-1
11
HTTP_IF_UNMODIFIED_SINCE=Thu, 01 Jan 1970 00:16:40 GMT
12
--FILE--
13
<?php
14
http_cache_last_modified();
15
http_send_file(__FILE__);
16
?>
17
--EXPECTF--
18
Status: 412
19
X-Powered-By: %s
20
Cache-Control: private, must-revalidate, max-age=0
21
Last-Modified: %s
22
Accept-Ranges: bytes
23
Content-type: text/html