gzpassthru_basic.phpt 545 B

1234567891011121314151617181920212223242526
  1. --TEST--
  2. Test function gzpassthru() by calling it with its expected arguments
  3. --EXTENSIONS--
  4. zlib
  5. --FILE--
  6. <?php
  7. // note that gzpassthru is an alias to fpassthru. parameter checking tests will be
  8. // the same as fpassthru
  9. $f = __DIR__."/004.txt.gz";
  10. $h = gzopen($f, 'r');
  11. var_dump(gzpassthru($h));
  12. var_dump(gzpassthru($h));
  13. gzclose($h);
  14. ?>
  15. --EXPECT--
  16. When you're taught through feelings
  17. Destiny flying high above
  18. all I know is that you can realize it
  19. Destiny who cares
  20. as it turns around
  21. and I know that it descends down on me
  22. int(176)
  23. int(0)