Blog posts tagged "“just works”"

PHP 4.3.2 and expat Problems!?!

June 22nd, 2003

I’ve had 2 strange bug reports for Magpie. The common element is PHP 4.3.2. Anyone known anything (anything!) at all about what might be causing these problems?

Bug 1. Mapgie returns only 1 item

I got a report from that when Magpie was parsing a certain feed it was only return the first item in the feed, though there were clearly 15 items in the feed, and it was well formed. I went around a few times with the bug report, couldn’t reproduce it, talked with the person who reported it, and was coming close to dispair when they reported that their web host had recently upgraded to PHP 4.3.2 which is when the problem began, and the problem went away when they upgraded expat from 1.95.2 to 1.95.6. Good news, problem solved (yeh!) but um, that was weird, there were no error messages, and I hate mysteries. (bug which fix themselves have a nasty habit of showing up again later)

Bug 2. Running out of memory

Then I got a report of someone using FoF and Magpie, and running out of memory after parsing a small number of feeds. FreeBSD, PHP 4.3.2, expat 1.95.6 (drat).

I haven’t gone digging deeply into this (how the hell do you profile PHP btw?) but I wondered if anyone else was seeing/hearing about similar issues with the PHP 4.3.2? Thanks.