Re: [SMARTY-DEV] Found some incompatibilities
| From: | Mark Rogers | Date: | Thu, 04 Mar 2004 08:11:20 +0000 |
| Subject: | Re: [SMARTY-DEV] Found some incompatibilities | ||
| References: | 1 | Groups: | php.smarty.dev |
| Request: | Send a blank email to php-smarty-dev+get-2188@lists.php.net to get a copy of this message | ||
boots writes:
> Still, it is not a show stopper for Smarty by any means
> (particularly since it is easy to fix) and it isn't
> even official yet anyhow.
Looking at the response I got to posting the PHP bug report
(http://bugs.php.net/27461) it certainly sounds like it is a deliberate
change which will be staying.
<OT>My personal opinion is that requesting a 0 length to fread should work
fine; either returning the empty string if the file is open or FALSE
otherwise. Logic which requests a zero length is probably flawed, but I
don't think it is fread's job to detect that if there is a reasonable
interpretation of what reading zero bytes from a file should return. Or at
the very minimum, whichever behaviour is already established should be
maintained unless there is a good reason to change it, which I don't see
here. If anyone can point me at the relevant list archive or other source
where this decision was made I'd be interested to see what lead to this, as
I can't find it documented anywhere. </OT>
--
Mark Rogers,
More Solutions Ltd :: Tel: 0845 45 89 555