[wp-hackers] Bug in class-snoopy.php causes Dashboard script to unexpectedly halt

Jeremy Visser jeremy.visser at gmail.com
Fri Apr 28 08:12:46 GMT 2006


Cool, thanks for the tips.

On 4/28/06, Peter Westwood <peter.westwood at ftwr.co.uk> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Jeremy Visser wrote:
> > I eventually discovered that this was actually due to a strangely set
> value
> > in class-snoopy.php. The $maxlength value, which was used in the
> > _httprequest() function, was set to 500000 bytes. Snoopy was passing
> this
> > value to fread() which only accepts up to 8192 bytes, which means that
> > having $maxlength set to 500000 bytes is completely pointless. Although
> in
> > most cases, fread will work fine, in my case it was causing problems
> with
> > the script suddenly terminating without a trace. Changing $maxlength to
> 8192
> > fixed the problem.
> >
>
> Looking at the php docs for fread [1] are you sure that the limit of
> 8192 applies in this situation.  Reading through that page I think it
> only applies to streams opened on local files not remote files over
> ftp/http/whatever.
>
> > I also noticed that the Test
> > Track<http://www.tamba2.org.uk/wordpress/TestTrack/>was also
> > experiencing the same symptoms when I was logged on to it the other
> > day. This means that I am probably not alone in this strange behaviour.
> >
> > I have filed a bug
> > report<
> http://sourceforge.net/tracker/index.php?func=detail&aid=1474137&group_id=2091&atid=102091
> >on
> > snoopy.sf.net <http://sourceforge.net/projects/snoopy/> , but I doubt
> that
> > it will be fixed. I would like to see the next release of WordPress have
> > $maxlength set to 8192 out of the box, as I think this will fix some
> > problems with the class.
> >
>
> Raise a ticket on trac[2] if you want something fixed in WordPress
>
> [1] http://www.php.net/manual/en/function.fread.php
> [2] http://trac.wordpress.org
>
> westi
> - --
> Peter Westwood
> http://blog.ftwr.co.uk
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFEUc3YVPRdzag0AcURAulkAKCxvBpDanZjIbSCaTAvVwnPsl5DaACeOxd8
> T9jSs50QNDM2TTmElFnH3Qs=
> =so2t
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



--
Jeremy Visser
Email: jeremy.visser at gmail.com
Website: http://jeremy.serveblog.net/


More information about the wp-hackers mailing list