Re: stat/fstat
| From: | Jason Greene | Date: | Fri, 11 May 2001 00:14:31 +0000 |
| Subject: | Re: stat/fstat | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-54808@lists.php.net to get a copy of this message | ||
I ran into that a long time ago, and I wondered why.
I thought about changing it, but I assumed that
it would break backwards compatibility.
What about 4.1 though?
-Jason
----- Original Message -----
From: "Zeev Suraski" <zeev@zend.com>
To: <php-dev@lists.php.net>
Sent: Thursday, May 10, 2001 5:11 PM
Subject: Re: [PHP-DEV] stat/fstat
> I just figured this only applies to stat() and not fstat(). Which also
> means they're totally incompatible with each other, although the
> documentation suggests they're essentially the same, other than the fact
> that one expects a file handle and the other expects a file name... What
> gives?
>
>
> At 01:07 11/5/2001, Zeev Suraski wrote:
> >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/
> >
> >
> >--
> >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
>
> --
> Zeev Suraski <zeev@zend.com>
> CTO & co-founder, Zend Technologies Ltd.
> http://www.zend.com/
>
>
> --
> 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
>