Re: Found some incompatibilities

"Mark Rogers" <[email protected]>
Newsgroups gmane.comp.php.smarty.devel
Organization Quarella Ltd
Message-ID <006701c40106$7b008640$1100000a@mark>
Boots writes:
> Agreed, which indicates that it was either sloppy
> to request 0 bytes in the first place or more likely
> just a convenience considering the historical
> behaviour of fread.

The PHP manual shows an example which uses filesize exactly as Smarty does;
not that that makes it "good programming" but it does make it quite common.

If you Google for the phrase "Warning: fread(): Length parameter must be
greater than 0" there seem to be a number of sites out there using similar
code who have presumably upgraded PHP without realising, so I'm inclined to
think that this should not have been "fixed" in PHP, but since it has we
need Smarty ready to work with it.

-- 
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.