[Mediawiki-l] 100% CPU runaway with filecache in 1.3.0beta6

Brion Vibber brion at pobox.com
Sun Aug 8 10:17:54 UTC 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Brion Vibber wrote:
| (Side note: the file cache doesn't interact well with output-buffered
| gzipping. Comment out the line that sets that near the top of
| LocalSettings.php; unfortunately that doesn't solve this problem.)
|
| The output is being written out to the cache file *and sent to the
| client* but the connection hangs there. I'm not sure why yet...

Found the problem. It seems that the buffer is being passed by reference
on PHP 4.1; the variable is modified by the function and all goes to
hell. Making a copy to operate on gets things working.

Diff attached; fix just added to CVS head and 1.3 branch.

- -- brion vibber (brion @ pobox.com)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBFf3RwRnhpk1wk44RAnF9AKDCBpi5aV1NkgnWpK8C4X/GdD4d/gCaA/YG
qaoKi/1RLTELU2sQ/4QqzFE=
=/76B
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cache-fix.diff
Url: http://lists.wikimedia.org/pipermail/mediawiki-l/attachments/20040808/50481b1f/attachment.diff 


More information about the MediaWiki-l mailing list