projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
add test file to package.xml
[m6w6/ext-http]
/
tests
/
send_failed_precond_001.phpt
diff --git
a/tests/send_failed_precond_001.phpt
b/tests/send_failed_precond_001.phpt
index 6424ecbe7609c0107f09ce224f0a934803357152..c8dc1c862e52aebc24d698b3a0f2a0f2567717f7 100644
(file)
--- a/
tests/send_failed_precond_001.phpt
+++ b/
tests/send_failed_precond_001.phpt
@@
-6,15
+6,16
@@
include 'skip.inc';
checkcgi();
checkver(5.1);
?>
checkcgi();
checkver(5.1);
?>
+--ENV--
+HTTP_RANGE=bytes=0-1
+HTTP_IF_UNMODIFIED_SINCE=Thu, 01 Jan 1970 00:16:40 GMT
--FILE--
<?php
--FILE--
<?php
-$_SERVER['HTTP_RANGE'] = 'bytes=0-1';
-$_SERVER['HTTP_IF_UNMODIFIED_SINCE'] = http_date(10000);
http_cache_last_modified();
http_send_file(__FILE__);
?>
--EXPECTF--
http_cache_last_modified();
http_send_file(__FILE__);
?>
--EXPECTF--
-Status: 412
+Status: 412
%s
X-Powered-By: %s
Cache-Control: private, must-revalidate, max-age=0
Last-Modified: %s
X-Powered-By: %s
Cache-Control: private, must-revalidate, max-age=0
Last-Modified: %s