Hello,

what was the rationale behind throwing a warning for the snippet in the
topic?

Warning: fread(): Length parameter must be greater than 0. in
               /usr/local/lib/php/PEAR/Common.php on line 1296

This breaks often used code where the filesize is 0, like:
        $f = fopen('file', 'r');
        $contents = fread($f, filesize('file'));

And I don't really see the point of throwing a warning here.

Derick

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to