Re: Found some incompatibilities

"Mark Rogers" <[email protected]>
Newsgroups gmane.comp.php.smarty.devel
Organization Quarella Ltd
Message-ID <005801c401c0$47193740$1100000a@mark>
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

-- 
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.