Menu

#55 $maxlength default value is too high

open
nobody
None
5
2006-04-21
2006-04-21
Jeremy
No

I use WordPress 2.0.2 which contains a copy of Snoopy
1.2.3.

I recently ran into a problem where the PHP script
would simply terminate with no feedback whatsoever
during a call to fread() in the _httprequest() function
while my wp-slimstat plugin was activated.

After many hours of debugging, I found that changing
the default value of $maxlength from 500000 to 8192
fixed the problem.

I think that the default value should be permanently
changed to 8192, because according to the PHP
documentation on fread()
(http://www.php.net/manual/en/function.fread.php) the
reading of file will stop at 8192 bytes anyway, so
having the value of $maxlength any higher would be
pointless, and in my case, cause problems.

Regards, Jeremy.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB