gzdeflate_variation1.phpt 486 B

123456789101112131415161718192021222324
  1. --TEST--
  2. Test gzdeflate() function : variation
  3. --EXTENSIONS--
  4. zlib
  5. --FILE--
  6. <?php
  7. include(__DIR__ . '/data.inc');
  8. echo "*** Testing gzdeflate() : variation ***\n";
  9. echo "\n-- Testing multiple compression --\n";
  10. $output = gzdeflate($data);
  11. var_dump( md5($output));
  12. var_dump(md5(gzdeflate($output)));
  13. ?>
  14. --EXPECT--
  15. *** Testing gzdeflate() : variation ***
  16. -- Testing multiple compression --
  17. string(32) "078554fe65e06f6ff01eab51cfc7ae9b"
  18. string(32) "86b9f895ef1377da5269ec3cb2729f71"