From the manual:
Note: The length parameter became optional in PHP 4.2.0, if omitted, it
would assume 1024 as the line length. As of PHP 4.3, omitting length
will keep reading from the stream until it reaches the end of the line.
If the majority of the lines in the file are all larger than 8KB,
It seems that some php versions have difficulties with the fgets() function.
On php 4.3.2 it works fine, but other versions report warnings.
fgets($f);
Warning: Wrong parameter count for fgets() in
/var/www/Xprotector/include/base.inc.php on line 70
If I change fgets to
fgets($f, 4096);
it w
2 matches
Mail list logo