gzopen_basic.phpt 908 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. --TEST--
  2. Test gzopen() function : basic functionality
  3. --EXTENSIONS--
  4. zlib
  5. --FILE--
  6. <?php
  7. echo "*** Testing gzopen() : basic functionality ***\n";
  8. // Initialise all required variables
  9. $filename = __DIR__."/004.txt.gz";
  10. $mode = 'r';
  11. $use_include_path = false;
  12. // Calling gzopen() with all possible arguments
  13. $h = gzopen($filename, $mode, $use_include_path);
  14. gzpassthru($h);
  15. gzclose($h);
  16. // Calling gzopen() with mandatory arguments
  17. $h = gzopen($filename, $mode);
  18. gzpassthru($h);
  19. gzclose($h);
  20. ?>
  21. --EXPECT--
  22. *** Testing gzopen() : basic functionality ***
  23. When you're taught through feelings
  24. Destiny flying high above
  25. all I know is that you can realize it
  26. Destiny who cares
  27. as it turns around
  28. and I know that it descends down on me
  29. When you're taught through feelings
  30. Destiny flying high above
  31. all I know is that you can realize it
  32. Destiny who cares
  33. as it turns around
  34. and I know that it descends down on me