projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
fix MSVC >6 warnings and errors
[m6w6/ext-http]
/
tests
/
etag_mode_031.phpt
diff --git
a/tests/etag_mode_031.phpt
b/tests/etag_mode_031.phpt
index 1ac27e2bec997230df56ddc5ac39c9d4b88c06a0..5f7233836993bfd971e3614d5e52e2000e76e710 100644
(file)
--- a/
tests/etag_mode_031.phpt
+++ b/
tests/etag_mode_031.phpt
@@
-1,23
+1,23
@@
--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();
-checkmin(
5.1
);
+checkmin(
"5.2.5"
);
?>
--FILE--
<?php
?>
--FILE--
<?php
-ini_set('http.etag
_mode', HTTP_ETAG_CRC32
);
+ini_set('http.etag
.mode', extension_loaded('hash')?'crc32b':'crc32'
);
http_cache_etag();
http_send_data("abc\n");
?>
--EXPECTF--
http_cache_etag();
http_send_data("abc\n");
?>
--EXPECTF--
-X-Powered-By: PHP/%
s
+X-Powered-By: PHP/%
a
Cache-Control: private, must-revalidate, max-age=0
Accept-Ranges: bytes
ETag: "4e818847"
Content-Length: 4
Cache-Control: private, must-revalidate, max-age=0
Accept-Ranges: bytes
ETag: "4e818847"
Content-Length: 4
-Content-type: %
s
+Content-type: %
a
abc
abc