Re: stat/fstat

From: Date: Fri, 11 May 2001 15:32:09 +0000
Subject: Re: stat/fstat
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-54879@lists.php.net to get a copy of this message
Andrei had the same suggestion, so I went ahead and added it last night. -Jason ----- Original Message ----- From: "Stig Sæther Bakken" <ssb@fast.no> To: "Zeev Suraski" <zeev@zend.com> Cc: <php-dev@lists.php.net> Sent: Friday, May 11, 2001 4:18 AM Subject: Re: [PHP-DEV] stat/fstat > [Zeev Suraski <zeev@zend.com>] > > 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) > > Why not have both numerical and descriptive indices? Backwards > compatible, slightly bloatish, but not really a problem. > > - Stig > > -- > Stig Sæther Bakken <ssb@fast.no> > Fast Search & Transfer ASA, Trondheim, Norway > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.dev (#54879) next »