1--TEST-- 2Test gzencode() function : variation 3--EXTENSIONS-- 4zlib 5--SKIPIF-- 6<?php 7 8if( substr(PHP_OS, 0, 3) == "WIN" ) { 9 die("skip.. Do not run on Windows"); 10} 11 12 13 14if (PHP_OS == "Darwin") { 15 print "skip - OS is encoded in headers, tested header is non Darwin"; 16} 17?> 18--FILE-- 19<?php 20include(__DIR__ . '/data.inc'); 21 22echo "*** Testing gzencode() : variation ***\n"; 23 24echo "\n-- Testing multiple compression --\n"; 25$output = gzencode($data); 26var_dump(bin2hex(gzencode($output))); 27 28?> 29--EXPECTF-- 30*** Testing gzencode() : variation *** 31 32-- Testing multiple compression -- 33string(36%d) "%s" 34