Re: Fw: [PEAR-CVS] cvs: pear /Archive_Tar Tar.php
| From: | Tomas V.V.Cox | Date: | Mon, 05 Nov 2001 03:25:40 +0000 |
| Subject: | Re: Fw: [PEAR-CVS] cvs: pear /Archive_Tar Tar.php | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-2549@lists.php.net to get a copy of this message | ||
Vincent Blavet wrote:
>
> Martin, Pear-dev,
>
> A commit a bug correction, that should remove the problem of storing a not
> null "file" size for a folder item. The bug does not seems to come from a
> missing clearstatcache() statement, but more on a call to filesize() when
> the file is in fact a folder.
>
> Question : what should normally answer filesize() when the file is a folder
> ? 0 or anything else ?
$ php -Cq
<?php
var_dump(filesize('CVS')); // <- CVS is a dir
?>
int(1024)
Can not do a "is_dir" test?
Tomas V.V.Cox