Re: file streams & metadata
| From: | Pierre Joye | Date: | Mon, 07 Mar 2011 09:46:04 +0000 |
| Subject: | Re: file streams & metadata | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-51593@lists.php.net to get a copy of this message | ||
On Mon, Mar 7, 2011 at 10:44 AM, Stas Malyshev <smalyshev@sugarcrm.com> wrote:
> Hi!
>
>> I would prefer to have these particular getters (and maybe ever
>> setters) somewhere else, like in a derivated SplFile. That would give
>> us more flexibility and cleaner APIs fro something that does not
>> really fit in default streams anyway (or rarely).
>
> touch(), chmod(), etc. aren't "rarely" used. They are used in alomst any
> app, everywhere.
The key part of this reply was "these particular", as they are very
platform specific and useless in a generic stream wrapper
implementation.
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org