|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-12-20 03:23 UTC] didou@php.net
[2004-12-20 10:35 UTC] tony2001 at phpclub dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 16:00:01 2025 UTC |
Description: ------------ fstat() returns result array with both associative & numerics indexes, but documentation says only about associative ones. Reproduce code: --------------- <?php $fp = fopen(__FILE__,'r'); var_dump(fstat($fp)); ?> Expected result: ---------------- Array ( [dev] => 771 [ino] => 488704 [mode] => 33188 [nlink] => 1 [uid] => 0 [gid] => 0 [rdev] => 0 [size] => 1114 [atime] => 1061067181 [mtime] => 1056136526 [ctime] => 1056136526 [blksize] => 4096 [blocks] => 8 ) Actual result: -------------- array(26) { [0]=> int(773) [1]=> int(115763) [2]=> int(33188) [3]=> int(1) [4]=> int(0) [5]=> int(0) [6]=> int(0) [7]=> int(77) [8]=> int(1103191522) [9]=> int(1103191522) [10]=> int(1103191522) [11]=> int(4096) [12]=> int(8) ["dev"]=> int(773) ["ino"]=> int(115763) ["mode"]=> int(33188) ["nlink"]=> int(1) ["uid"]=> int(0) ["gid"]=> int(0) ["rdev"]=> int(0) ["size"]=> int(77) ["atime"]=> int(1103191522) ["mtime"]=> int(1103191522) ["ctime"]=> int(1103191522) ["blksize"]=> int(4096) ["blocks"]=> int(8) }