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. Ilia -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php