stat/fstat
| From: | Zeev Suraski | Date: | Thu, 10 May 2001 22:07:24 +0000 |
| Subject: | stat/fstat | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-54796@lists.php.net to get a copy of this message | ||
Hey,
I just got around to writing a PHP script that uses stat(), and was quite surprised to find that instead of using string indices, it uses hardcoded/obscure numeric indices, e.g.:
Array
(
[0] => 2050
[1] => 1114462
[2] => 16877
[3] => 2
[4] => 503
[5] => 513
[6] => 11065
[7] => 1024
[8] => 989532201
[9] => 989532201
[10] => 989532201
[11] => 4096
[12] => 2
)
Is there any reason for this? If not, I'd like to add meaningful names as well (I guess it's way too late to remove the numeric indices)
Zeev
--
Zeev Suraski <zeev@zend.com>
CTO & co-founder, Zend Technologies Ltd. http://www.zend.com/