readgzfile_variation2.phpt 853 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --TEST--
  2. Test function readgzfile() by substituting argument 1 with boolean values.
  3. --SKIPIF--
  4. <?php
  5. if (!extension_loaded('zlib')) die ('skip zlib extension not available in this build');
  6. ?>
  7. --FILE--
  8. <?php
  9. $use_include_path =
  10. $variation = array(
  11. 'lowercase true' => true,
  12. 'lowercase false' =>false,
  13. 'uppercase TRUE' =>TRUE,
  14. 'uppercase FALSE' =>FALSE,
  15. );
  16. foreach ( $variation as $var ) {
  17. var_dump(readgzfile( $var , $use_include_path ) );
  18. }
  19. ?>
  20. ===DONE===
  21. --EXPECTF--
  22. Warning: readgzfile() expects parameter 2 to be long, array given in %s on line %d
  23. NULL
  24. Warning: readgzfile() expects parameter 2 to be long, array given in %s on line %d
  25. NULL
  26. Warning: readgzfile() expects parameter 2 to be long, array given in %s on line %d
  27. NULL
  28. Warning: readgzfile() expects parameter 2 to be long, array given in %s on line %d
  29. NULL
  30. ===DONE===