projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- use way less memory by not duplicating response headers and bodies
[m6w6/ext-http]
/
tests
/
etag_mode_001.phpt
diff --git
a/tests/etag_mode_001.phpt
b/tests/etag_mode_001.phpt
index 19223a44dbf0a8b77d056c69951df646f726368b..809efeea9d65d660336bda5f8ec7407e563e8ec6 100644
(file)
--- a/
tests/etag_mode_001.phpt
+++ b/
tests/etag_mode_001.phpt
@@
-1,13
+1,14
@@
--TEST--
--TEST--
-crc32 etag
+crc32 etag
(may fail because PHPs crc32 is actually crc32b)
--SKIPIF--
<?php
include 'skip.inc';
checkcgi();
--SKIPIF--
<?php
include 'skip.inc';
checkcgi();
+checkmax(5.0);
?>
--FILE--
<?php
?>
--FILE--
<?php
-ini_set('http.etag
_mode', HTTP_ETAG_CRC32
);
+ini_set('http.etag
.mode', 'crc32'
);
http_cache_etag();
http_send_data("abc\n");
?>
http_cache_etag();
http_send_data("abc\n");
?>
@@
-16,7
+17,7
@@
Content-type: %s
X-Powered-By: PHP/%s
Cache-Control: private, must-revalidate, max-age=0
Accept-Ranges: bytes
X-Powered-By: PHP/%s
Cache-Control: private, must-revalidate, max-age=0
Accept-Ranges: bytes
-ETag: "
28ad514e
"
+ETag: "
4e818847
"
Content-Length: 4
abc
Content-Length: 4
abc