On 2004/01/03, at 10:36, Ilia Alshanetsky wrote:


On January 02, 2004 08:28 pm, Moriyoshi Koizumi wrote:
I think this may cause a slight BC break, because they wouldn't
raise warnings if the length is 0. How about returning FALSE
silently in that case?

fgets($fp, 0) is pretty pointless and should raise an error. If it does not
raise an error it makes spotting and resolving the problem that much more
difficult. With a clear warning fixing this issue in the code is much
simpler.

Well, the reasoning seems right to the point. But BC stuff is not necessarily involved in the semantics behind the function.

Moriyoshi

--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to