mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
37 lines
762 B
PHP
37 lines
762 B
PHP
--TEST--
|
|
Test gzdeflate() function : variation
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded("zlib")) {
|
|
print "skip - ZLIB extension not loaded";
|
|
}
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
/* Prototype : string gzdeflate(string data [, int level])
|
|
* Description: Gzip-compress a string
|
|
* Source code: ext/zlib/zlib.c
|
|
* Alias to functions:
|
|
*/
|
|
|
|
include(dirname(__FILE__) . '/data.inc');
|
|
|
|
echo "*** Testing gzdeflate() : variation ***\n";
|
|
|
|
|
|
|
|
echo "\n-- Testing multiple compression --\n";
|
|
$output = gzdeflate($data);
|
|
var_dump( md5($output));
|
|
var_dump(md5(gzdeflate($output)));
|
|
|
|
?>
|
|
===Done===
|
|
--EXPECT--
|
|
*** Testing gzdeflate() : variation ***
|
|
|
|
-- Testing multiple compression --
|
|
string(32) "078554fe65e06f6ff01eab51cfc7ae9b"
|
|
string(32) "86b9f895ef1377da5269ec3cb2729f71"
|
|
===Done===
|