fstat_variation2.phpt 722 B

123456789101112131415161718192021222324252627282930
  1. --TEST--
  2. Test function fstat() by substituting argument 1 with boolean values.
  3. --FILE--
  4. <?php
  5. $variation_array = array(
  6. 'lowercase true' => true,
  7. 'lowercase false' =>false,
  8. 'uppercase TRUE' =>TRUE,
  9. 'uppercase FALSE' =>FALSE,
  10. );
  11. foreach ( $variation_array as $var ) {
  12. var_dump(fstat( $var ) );
  13. }
  14. ?>
  15. ===DONE===
  16. --EXPECTF--
  17. Warning: fstat() expects parameter 1 to be resource, bool given in %s on line %d
  18. bool(false)
  19. Warning: fstat() expects parameter 1 to be resource, bool given in %s on line %d
  20. bool(false)
  21. Warning: fstat() expects parameter 1 to be resource, bool given in %s on line %d
  22. bool(false)
  23. Warning: fstat() expects parameter 1 to be resource, bool given in %s on line %d
  24. bool(false)
  25. ===DONE===