- fixed memory corruption
[m6w6/ext-http] / tests / etag_mode_001.phpt
diff --git a/tests/etag_mode_001.phpt b/tests/etag_mode_001.phpt
new file mode 100644 (file)
index 0000000..19223a4
--- /dev/null
@@ -0,0 +1,22 @@
+--TEST--
+crc32 etag
+--SKIPIF--
+<?php
+include 'skip.inc';
+checkcgi();
+?>
+--FILE--
+<?php
+ini_set('http.etag_mode', HTTP_ETAG_CRC32);
+http_cache_etag();
+http_send_data("abc\n");
+?>
+--EXPECTF--
+Content-type: %s
+X-Powered-By: PHP/%s
+Cache-Control: private, must-revalidate, max-age=0
+Accept-Ranges: bytes
+ETag: "28ad514e"
+Content-Length: 4
+
+abc