Skip to content

Commit 229de91

Browse files
committed
test: add dcz output handler when dictionary loading fails
1 parent 8456663 commit 229de91

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

tests/ob_dcz_005.phpt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
--TEST--
2+
output handler: dcz
3+
--SKIPIF--
4+
<?php
5+
include (dirname(__FILE__) . '/ob_skipif.inc');
6+
?>
7+
--GET--
8+
ob=dictionary
9+
--ENV--
10+
HTTP_ACCEPT_ENCODING=zstd,dcz
11+
HTTP_AVAILABLE_DICTIONARY=:5wg7BLZeirApJAxOdI/QBi8RvwZuIJfPf0TwMo/x/yg=:
12+
--FILE--
13+
<?php
14+
ini_set('zstd.output_compression', 1);
15+
ini_set('zstd.output_compression_dict', '');
16+
17+
include(dirname(__FILE__) . '/data.inc');
18+
echo "{$data}";
19+
?>
20+
--EXPECT_EXTERNAL--
21+
files/ob_data.zstd
22+
--EXPECTHEADERS--
23+
Content-Encoding: zstd
24+
Vary: Accept-Encoding

0 commit comments

Comments
 (0)