fstat_basic.phpt 725 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --TEST--
  2. Test function fstat() by calling it with its expected arguments
  3. --FILE--
  4. <?php
  5. $fp = fopen (__FILE__, 'r');
  6. var_dump(fstat( $fp ) );
  7. fclose($fp);
  8. ?>
  9. --EXPECTF--
  10. array(26) {
  11. [0]=>
  12. int(%i)
  13. [1]=>
  14. int(%i)
  15. [2]=>
  16. int(%i)
  17. [3]=>
  18. int(%i)
  19. [4]=>
  20. int(%i)
  21. [5]=>
  22. int(%i)
  23. [6]=>
  24. int(%i)
  25. [7]=>
  26. int(%i)
  27. [8]=>
  28. int(%i)
  29. [9]=>
  30. int(%i)
  31. [10]=>
  32. int(%i)
  33. [11]=>
  34. int(%i)
  35. [12]=>
  36. int(%i)
  37. ["dev"]=>
  38. int(%i)
  39. ["ino"]=>
  40. int(%i)
  41. ["mode"]=>
  42. int(%i)
  43. ["nlink"]=>
  44. int(%i)
  45. ["uid"]=>
  46. int(%i)
  47. ["gid"]=>
  48. int(%i)
  49. ["rdev"]=>
  50. int(%i)
  51. ["size"]=>
  52. int(%i)
  53. ["atime"]=>
  54. int(%i)
  55. ["mtime"]=>
  56. int(%i)
  57. ["ctime"]=>
  58. int(%i)
  59. ["blksize"]=>
  60. int(%i)
  61. ["blocks"]=>
  62. int(%i)
  63. }