{
  "attachments": [],
  "comments_archived": true,
  "date": "2005-12-19T11:01:08.000Z",
  "layout": "post",
  "tags": [
    "asides"
  ],
  "title": "FeedBurner feeds give heartburn to PHP XML parsers?",
  "wordpress_id": 805,
  "wordpress_slug": "feedburner-feeds-give-heartburn-to-php-xml-parsers",
  "wordpress_url": "http://decafbad.com/blog/?p=805",
  "year": "2005",
  "month": "12",
  "day": "19",
  "isDir": false,
  "slug": "feedburner-feeds-give-heartburn-to-php-xml-parsers",
  "type": "entry",
  "postName": "2005-12-19-feedburner-feeds-give-heartburn-to-php-xml-parsers",
  "html": "<p><strong>Final Update</strong>: <em>Actually, it turns out that feeding raw, uncompressed gzip streams to PHP XML parsers causes heartburn.  Go figure.  <a href=\"http://decafbad.com/blog/2005/12/19/sometimes-the-lazyweb-delivers-with-a-deluge\">I guess that teaches me to poke the lazyweb with a stick.</a></em></p>\n<p>I'm trying to chase this bug down, but is it just me or do FeedBurner feeds give trouble to PHP XML parsers? (<em>No, it's just me.</em>)  These three scripts <strike>break</strike> <em>do not break</em>:</p>\n<ul>\n<li>FeedBurner feed - <a href=\"http://feeds.feedburner.com/AVc\">http://feeds.feedburner.com/AVc</a></li>\n<li>JSON via Magpie parsing — <a href=\"http://decafbad.com/2005/12/FeedMagick/www-bin/as-json.php?in=http%3A%2F%2Ffeeds.feedburner.com%2FAVc\">http://decafbad.com/2005/12/FeedMagick/www-bin/as-json.php?in=http%3A%2F%2Ffeeds.feedburner.com%2FAVc</a></li>\n<li>Passthough with SAX parsing — <a href=\"http://decafbad.com/2005/12/FeedMagick/www-bin/passthru-sax.php?in=http%3A%2F%2Ffeeds.feedburner.com%2FAVc\">http://decafbad.com/2005/12/FeedMagick/www-bin/passthru-sax.php?in=http%3A%2F%2Ffeeds.feedburner.com%2FAVc</a></li>\n<li>Passthough with DOM parsing — <a href=\"http://decafbad.com/2005/12/FeedMagick/www-bin/passthru-dom.php?in=http%3A%2F%2Ffeeds.feedburner.com%2FAVc\">http://decafbad.com/2005/12/FeedMagick/www-bin/passthru-dom.php?in=http%3A%2F%2Ffeeds.feedburner.com%2FAVc</a></li>\n</ul>\n<p>I'm willing to blame my own ineptitude, except that the error in MagpieRSS parsing happens in the bowels of that beast, right where the XML parsing happens... and that's not <em>my</em> code.</p>\n<p><em>Update</em>:  Actually, I think it's a different problem, but just one that FeedBurner feeds all happen to trigger.  Maybe something to do with the initial tag separated from the XML declaration by some whitespace?</p>\n<p><em>Update:</em> By the by, I don't <em>really</em> think MagpieRSS is a beast.  Although, I do feel like I'm in the belly of one when I'm wandering through PHP code in general.  And the \"not my code\" bit is mostly me trying to figure out what's breaking where and why—since Magpie works in other cases except where I'm abusing it.  More like <em>head-scratching</em> italics, not <em>finger-pointing</em> italics.  Seems like my code's breaking it, but it's not breaking <em>in my code</em>.</p>\n<div id=\"comments\" class=\"comments archived-comments\"><h3>Archived Comments</h3>\n<ul class=\"comments\">\n<li class=\"comment\" id=\"comment-221082400\">\n<div class=\"meta\">\n<div class=\"author\">\n<a class=\"avatar image\" rel=\"nofollow\" href=\"http://weblog.philringnalda.com/\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=2b6c1ba0915a97a81d59ca1e101e6d74&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\" width=\"\" height=\"\"></a>\n<a class=\"avatar name\" rel=\"nofollow\" href=\"http://weblog.philringnalda.com/\">Phil Ringnalda</a>\n</div>\n\n\n<p><a href=\"#comment-221082400\" class=\"permalink\"><time datetime=\"2005-12-19T06:40:20\">2005-12-19T06:40:20</time></a></p>\n</div>\n\n\n<div class=\"content\"><p>Among the things to twiddle would be the user-agent string you're sending, since the original point of Feedburner was to decide what was best for various UAs and vary what's sent accordingly. For what little it's worth, it works for me in Gregarius (which is some 0.7x MagpieRSS, though I'm not sure quite which).</p></div>\n\n\n</li>\n<li class=\"comment\" id=\"comment-221082401\">\n<div class=\"meta\">\n<div class=\"author\">\n<a class=\"avatar image\" rel=\"nofollow\" href=\"http://laughingmeme.org\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=01457d1a0f0e533062cd0d1033fb4d7a&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\" width=\"\" height=\"\"></a>\n<a class=\"avatar name\" rel=\"nofollow\" href=\"http://laughingmeme.org\">kellan</a>\n</div>\n\n\n<p><a href=\"#comment-221082401\" class=\"permalink\"><time datetime=\"2005-12-19T14:10:52\">2005-12-19T14:10:52</time></a></p>\n</div>\n\n\n<div class=\"content\"><p>there are 2 different PHP XML parsers (expat based and libxml based) depending on which version of PHP you're using, and a number of minor inconsistencies in the various implementations between versions using the same parser.  without knowing which PHP its impossible to speculate. </p>\n<p>though Phil's suggestion seems like a good place to start.</p>\n<blockquote>\n<p>… and that’s not my code.</p>\n</blockquote>\n\n\n<p>ouch</p></div>\n\n\n</li>\n<li class=\"comment\" id=\"comment-221082402\">\n<div class=\"meta\">\n<div class=\"author\">\n<a class=\"avatar image\" rel=\"nofollow\" href=\"http://www.decafbad.com\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=2377f34a68801b861c3e54e1301f0dce&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\" width=\"\" height=\"\"></a>\n<a class=\"avatar name\" rel=\"nofollow\" href=\"http://www.decafbad.com\">l.m.orchard</a>\n</div>\n\n\n<p><a href=\"#comment-221082402\" class=\"permalink\"><time datetime=\"2005-12-19T14:36:22\">2005-12-19T14:36:22</time></a></p>\n</div>\n\n\n<div class=\"content\"><p>Kellan: Eek, the \"that's not my code\" bit wasn't meant as any slight against MagpieRSS... nor was calling it a beast.  Though after a night's sleep, it sure looks that way!</p></div>\n\n\n</li>\n<li class=\"comment\" id=\"comment-221082404\">\n<div class=\"meta\">\n<div class=\"author\">\n<a class=\"avatar image\" rel=\"nofollow\" href=\"http://www.burningdoor.com/eric\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=d87fd636e249c068a94b8992fecedadc&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\" width=\"\" height=\"\"></a>\n<a class=\"avatar name\" rel=\"nofollow\" href=\"http://www.burningdoor.com/eric\">Eric Lunt</a>\n</div>\n\n\n<p><a href=\"#comment-221082404\" class=\"permalink\"><time datetime=\"2005-12-19T17:42:18\">2005-12-19T17:42:18</time></a></p>\n</div>\n\n\n<div class=\"content\"><p>Would you mind giving me more details as to what you think is giving the parser fits? I'm pretty sure the XML we send down is valid, but we've had to put workarounds in place for other user-agents. Right now, the only thing we have special for Magpie RSS is that we don't serve Atom to that user-agent if the version is 0.5.</p>\n<p>If there's something we can fix on our side that would reduce breakage, I'm all for it.</p>\n<p>Eric Lunt\nCTO, FeedBurner</p></div>\n\n\n</li>\n<li class=\"comment\" id=\"comment-221082405\">\n<div class=\"meta\">\n<div class=\"author\">\n<a class=\"avatar image\" rel=\"nofollow\" href=\"http://www.decafbad.com\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=2377f34a68801b861c3e54e1301f0dce&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\" width=\"\" height=\"\"></a>\n<a class=\"avatar name\" rel=\"nofollow\" href=\"http://www.decafbad.com\">l.m.orchard</a>\n</div>\n\n\n<p><a href=\"#comment-221082405\" class=\"permalink\"><time datetime=\"2005-12-19T18:18:49\">2005-12-19T18:18:49</time></a></p>\n</div>\n\n\n<div class=\"content\"><p>I probably should have done some more digging before posting, but I just ran into this problem and figured I'd throw up a flag hoping someone on the lazyweb knew just what the problem is.</p>\n<p>I'm going to be poking into it more as I have time, though at the moment I don't even know enough to say for sure that FeedBurner's the culprit--just that every FeedBurner-processed feed triggers my bug.  Since no one else seems to know what the issue is right off the bat, my current thought is that it's something I've fumbled.  :)</p></div>\n\n\n</li>\n<li class=\"comment\" id=\"comment-221082406\">\n<div class=\"meta\">\n<div class=\"author\">\n<a class=\"avatar image\" rel=\"nofollow\" href=\"http://www.decafbad.com\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=2377f34a68801b861c3e54e1301f0dce&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\" width=\"\" height=\"\"></a>\n<a class=\"avatar name\" rel=\"nofollow\" href=\"http://www.decafbad.com\">l.m.orchard</a>\n</div>\n\n\n<p><a href=\"#comment-221082406\" class=\"permalink\"><time datetime=\"2005-12-19T18:20:34\">2005-12-19T18:20:34</time></a></p>\n</div>\n\n\n<div class=\"content\"><p>Eric: Thanks for the fast response!  It makes me think even more that the issue's lurking in my own code, rather than in FeedBurner, since I figure you guys would have fixed an overall issue big enough to affect all PHP XML parsers :)</p></div>\n\n\n</li>\n<li class=\"comment\" id=\"comment-221082407\">\n<div class=\"meta\">\n<div class=\"author\">\n<a class=\"avatar image\" rel=\"nofollow\" href=\"http://toys.lerdorf.com\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=e915a97db0aeef46c5dd899d47c175ad&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\" width=\"\" height=\"\"></a>\n<a class=\"avatar name\" rel=\"nofollow\" href=\"http://toys.lerdorf.com\">Rasmus</a>\n</div>\n\n\n<p><a href=\"#comment-221082407\" class=\"permalink\"><time datetime=\"2005-12-19T20:09:19\">2005-12-19T20:09:19</time></a></p>\n</div>\n\n\n<div class=\"content\"><p>I wrote a simple little PHP 5.1-based RSS parser a while back and it doesn't have any problems with that http://feeds.feedburner.com/AVc feed.</p>\n<p>See: http://lerdorf.com/test_rss.php?feed=http://feeds.feedburner.com/AVc</p>\n<p>You can see the parser code here:</p>\n<p>http://lerdorf.com/php/simple_rss.phps</p>\n<p>And if you want to see how test_rss.php uses it, see:</p>\n<p>http://lerdorf.com/test_rss.phps</p></div>\n\n\n</li>\n<li class=\"comment\" id=\"comment-221082408\">\n<div class=\"meta\">\n<div class=\"author\">\n<a class=\"avatar image\" rel=\"nofollow\" href=\"http://www.decafbad.com\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=2377f34a68801b861c3e54e1301f0dce&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\" width=\"\" height=\"\"></a>\n<a class=\"avatar name\" rel=\"nofollow\" href=\"http://www.decafbad.com\">l.m.orchard</a>\n</div>\n\n\n<p><a href=\"#comment-221082408\" class=\"permalink\"><time datetime=\"2005-12-19T21:34:26\">2005-12-19T21:34:26</time></a></p>\n</div>\n\n\n<div class=\"content\"><p>Man, I got a response from key people across the board on this—author of MagpieRSS, CTO of FeedBurner, and the PHP Man himself!  I am now thoroughly convinced that the problem firmly lies within whatever odd things I'm doing in my code.  :)  Now I just have to get the spare time to figure out what's up.</p>\n<p>Thanks for the responses, guys!  I couldn't <em>pay</em> for this kind of support.</p></div>\n\n\n</li>\n<li class=\"comment\" id=\"comment-221082409\">\n<div class=\"meta\">\n<div class=\"author\">\n<a class=\"avatar image\" rel=\"nofollow\" href=\"\"><img src=\"http://disqus.com/api/users/avatars/danmactough.jpg\" width=\"\" height=\"\"></a>\n<a class=\"avatar name\" rel=\"nofollow\" href=\"\">danmactough</a>\n</div>\n\n\n<p><a href=\"#comment-221082409\" class=\"permalink\"><time datetime=\"2006-02-27T05:22:59\">2006-02-27T05:22:59</time></a></p>\n</div>\n\n\n<div class=\"content\"><p>Funny that I just encountered this problem, too. I discovered that the problem was that because my PHP script was using cURL to fetch a feed that was REDIRECTING to FeedBurner, cURL was crapping out unless I set a cURL option to follow redirects (where fopen would follow the redirect by default).</p>\n<p>After I did that, I had no problem.</p></div>\n\n\n</li>\n</ul>\n\n\n</div>\n\n\n",
  "body": "**Final Update**: *Actually, it turns out that feeding raw, uncompressed gzip streams to PHP XML parsers causes heartburn.  Go figure.  [I guess that teaches me to poke the lazyweb with a stick.][poke]*\r\n\r\n[poke]: http://decafbad.com/blog/2005/12/19/sometimes-the-lazyweb-delivers-with-a-deluge\r\n\r\nI'm trying to chase this bug down, but is it just me or do FeedBurner feeds give trouble to PHP XML parsers? (*No, it's just me.*)  These three scripts <strike>break</strike> *do not break*:\r\n\r\n* FeedBurner feed - <http://feeds.feedburner.com/AVc>\r\n* JSON via Magpie parsing — <http://decafbad.com/2005/12/FeedMagick/www-bin/as-json.php?in=http%3A%2F%2Ffeeds.feedburner.com%2FAVc>\r\n* Passthough with SAX parsing — <http://decafbad.com/2005/12/FeedMagick/www-bin/passthru-sax.php?in=http%3A%2F%2Ffeeds.feedburner.com%2FAVc>\r\n* Passthough with DOM parsing — <http://decafbad.com/2005/12/FeedMagick/www-bin/passthru-dom.php?in=http%3A%2F%2Ffeeds.feedburner.com%2FAVc>\r\n\r\nI'm willing to blame my own ineptitude, except that the error in MagpieRSS parsing happens in the bowels of that beast, right where the XML parsing happens... and that's not *my* code.\r\n\r\n*Update*:  Actually, I think it's a different problem, but just one that FeedBurner feeds all happen to trigger.  Maybe something to do with the initial tag separated from the XML declaration by some whitespace?\r\n\r\n*Update:* By the by, I don't *really* think MagpieRSS is a beast.  Although, I do feel like I'm in the belly of one when I'm wandering through PHP code in general.  And the \"not my code\" bit is mostly me trying to figure out what's breaking where and why—since Magpie works in other cases except where I'm abusing it.  More like *head-scratching* italics, not *finger-pointing* italics.  Seems like my code's breaking it, but it's not breaking *in my code*.\r\n\r\n<div id=\"comments\" class=\"comments archived-comments\">\r\n            <h3>Archived Comments</h3>\r\n            \r\n        <ul class=\"comments\">\r\n            \r\n        <li class=\"comment\" id=\"comment-221082400\">\r\n            <div class=\"meta\">\r\n                <div class=\"author\">\r\n                    <a class=\"avatar image\" rel=\"nofollow\" \r\n                       href=\"http://weblog.philringnalda.com/\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=2b6c1ba0915a97a81d59ca1e101e6d74&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\"/></a>\r\n                    <a class=\"avatar name\" rel=\"nofollow\" \r\n                       href=\"http://weblog.philringnalda.com/\">Phil Ringnalda</a>\r\n                </div>\r\n                <a href=\"#comment-221082400\" class=\"permalink\"><time datetime=\"2005-12-19T06:40:20\">2005-12-19T06:40:20</time></a>\r\n            </div>\r\n            <div class=\"content\"><p>Among the things to twiddle would be the user-agent string you're sending, since the original point of Feedburner was to decide what was best for various UAs and vary what's sent accordingly. For what little it's worth, it works for me in Gregarius (which is some 0.7x MagpieRSS, though I'm not sure quite which).</p></div>\r\n            \r\n        </li>\r\n    \r\n        <li class=\"comment\" id=\"comment-221082401\">\r\n            <div class=\"meta\">\r\n                <div class=\"author\">\r\n                    <a class=\"avatar image\" rel=\"nofollow\" \r\n                       href=\"http://laughingmeme.org\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=01457d1a0f0e533062cd0d1033fb4d7a&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\"/></a>\r\n                    <a class=\"avatar name\" rel=\"nofollow\" \r\n                       href=\"http://laughingmeme.org\">kellan</a>\r\n                </div>\r\n                <a href=\"#comment-221082401\" class=\"permalink\"><time datetime=\"2005-12-19T14:10:52\">2005-12-19T14:10:52</time></a>\r\n            </div>\r\n            <div class=\"content\"><p>there are 2 different PHP XML parsers (expat based and libxml based) depending on which version of PHP you're using, and a number of minor inconsistencies in the various implementations between versions using the same parser.  without knowing which PHP its impossible to speculate. </p>\r\n\r\n<p>though Phil's suggestion seems like a good place to start.</p>\r\n\r\n<blockquote>\r\n  <p>… and that’s not my code.</p>\r\n</blockquote>\r\n\r\n<p>ouch</p></div>\r\n            \r\n        </li>\r\n    \r\n        <li class=\"comment\" id=\"comment-221082402\">\r\n            <div class=\"meta\">\r\n                <div class=\"author\">\r\n                    <a class=\"avatar image\" rel=\"nofollow\" \r\n                       href=\"http://www.decafbad.com\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=2377f34a68801b861c3e54e1301f0dce&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\"/></a>\r\n                    <a class=\"avatar name\" rel=\"nofollow\" \r\n                       href=\"http://www.decafbad.com\">l.m.orchard</a>\r\n                </div>\r\n                <a href=\"#comment-221082402\" class=\"permalink\"><time datetime=\"2005-12-19T14:36:22\">2005-12-19T14:36:22</time></a>\r\n            </div>\r\n            <div class=\"content\"><p>Kellan: Eek, the \"that's not my code\" bit wasn't meant as any slight against MagpieRSS... nor was calling it a beast.  Though after a night's sleep, it sure looks that way!</p></div>\r\n            \r\n        </li>\r\n    \r\n        <li class=\"comment\" id=\"comment-221082404\">\r\n            <div class=\"meta\">\r\n                <div class=\"author\">\r\n                    <a class=\"avatar image\" rel=\"nofollow\" \r\n                       href=\"http://www.burningdoor.com/eric\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=d87fd636e249c068a94b8992fecedadc&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\"/></a>\r\n                    <a class=\"avatar name\" rel=\"nofollow\" \r\n                       href=\"http://www.burningdoor.com/eric\">Eric Lunt</a>\r\n                </div>\r\n                <a href=\"#comment-221082404\" class=\"permalink\"><time datetime=\"2005-12-19T17:42:18\">2005-12-19T17:42:18</time></a>\r\n            </div>\r\n            <div class=\"content\"><p>Would you mind giving me more details as to what you think is giving the parser fits? I'm pretty sure the XML we send down is valid, but we've had to put workarounds in place for other user-agents. Right now, the only thing we have special for Magpie RSS is that we don't serve Atom to that user-agent if the version is 0.5.</p>\r\n\r\n<p>If there's something we can fix on our side that would reduce breakage, I'm all for it.</p>\r\n\r\n<p>Eric Lunt\r\nCTO, FeedBurner</p></div>\r\n            \r\n        </li>\r\n    \r\n        <li class=\"comment\" id=\"comment-221082405\">\r\n            <div class=\"meta\">\r\n                <div class=\"author\">\r\n                    <a class=\"avatar image\" rel=\"nofollow\" \r\n                       href=\"http://www.decafbad.com\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=2377f34a68801b861c3e54e1301f0dce&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\"/></a>\r\n                    <a class=\"avatar name\" rel=\"nofollow\" \r\n                       href=\"http://www.decafbad.com\">l.m.orchard</a>\r\n                </div>\r\n                <a href=\"#comment-221082405\" class=\"permalink\"><time datetime=\"2005-12-19T18:18:49\">2005-12-19T18:18:49</time></a>\r\n            </div>\r\n            <div class=\"content\"><p>I probably should have done some more digging before posting, but I just ran into this problem and figured I'd throw up a flag hoping someone on the lazyweb knew just what the problem is.</p>\r\n\r\n<p>I'm going to be poking into it more as I have time, though at the moment I don't even know enough to say for sure that FeedBurner's the culprit--just that every FeedBurner-processed feed triggers my bug.  Since no one else seems to know what the issue is right off the bat, my current thought is that it's something I've fumbled.  :)</p></div>\r\n            \r\n        </li>\r\n    \r\n        <li class=\"comment\" id=\"comment-221082406\">\r\n            <div class=\"meta\">\r\n                <div class=\"author\">\r\n                    <a class=\"avatar image\" rel=\"nofollow\" \r\n                       href=\"http://www.decafbad.com\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=2377f34a68801b861c3e54e1301f0dce&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\"/></a>\r\n                    <a class=\"avatar name\" rel=\"nofollow\" \r\n                       href=\"http://www.decafbad.com\">l.m.orchard</a>\r\n                </div>\r\n                <a href=\"#comment-221082406\" class=\"permalink\"><time datetime=\"2005-12-19T18:20:34\">2005-12-19T18:20:34</time></a>\r\n            </div>\r\n            <div class=\"content\"><p>Eric: Thanks for the fast response!  It makes me think even more that the issue's lurking in my own code, rather than in FeedBurner, since I figure you guys would have fixed an overall issue big enough to affect all PHP XML parsers :)</p></div>\r\n            \r\n        </li>\r\n    \r\n        <li class=\"comment\" id=\"comment-221082407\">\r\n            <div class=\"meta\">\r\n                <div class=\"author\">\r\n                    <a class=\"avatar image\" rel=\"nofollow\" \r\n                       href=\"http://toys.lerdorf.com\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=e915a97db0aeef46c5dd899d47c175ad&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\"/></a>\r\n                    <a class=\"avatar name\" rel=\"nofollow\" \r\n                       href=\"http://toys.lerdorf.com\">Rasmus</a>\r\n                </div>\r\n                <a href=\"#comment-221082407\" class=\"permalink\"><time datetime=\"2005-12-19T20:09:19\">2005-12-19T20:09:19</time></a>\r\n            </div>\r\n            <div class=\"content\"><p>I wrote a simple little PHP 5.1-based RSS parser a while back and it doesn't have any problems with that http://feeds.feedburner.com/AVc feed.</p>\r\n\r\n<p>See: http://lerdorf.com/test_rss.php?feed=http://feeds.feedburner.com/AVc</p>\r\n\r\n<p>You can see the parser code here:</p>\r\n\r\n<p>http://lerdorf.com/php/simple_rss.phps</p>\r\n\r\n<p>And if you want to see how test_rss.php uses it, see:</p>\r\n\r\n<p>http://lerdorf.com/test_rss.phps</p></div>\r\n            \r\n        </li>\r\n    \r\n        <li class=\"comment\" id=\"comment-221082408\">\r\n            <div class=\"meta\">\r\n                <div class=\"author\">\r\n                    <a class=\"avatar image\" rel=\"nofollow\" \r\n                       href=\"http://www.decafbad.com\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=2377f34a68801b861c3e54e1301f0dce&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\"/></a>\r\n                    <a class=\"avatar name\" rel=\"nofollow\" \r\n                       href=\"http://www.decafbad.com\">l.m.orchard</a>\r\n                </div>\r\n                <a href=\"#comment-221082408\" class=\"permalink\"><time datetime=\"2005-12-19T21:34:26\">2005-12-19T21:34:26</time></a>\r\n            </div>\r\n            <div class=\"content\"><p>Man, I got a response from key people across the board on this—author of MagpieRSS, CTO of FeedBurner, and the PHP Man himself!  I am now thoroughly convinced that the problem firmly lies within whatever odd things I'm doing in my code.  :)  Now I just have to get the spare time to figure out what's up.</p>\r\n\r\n<p>Thanks for the responses, guys!  I couldn't <em>pay</em> for this kind of support.</p></div>\r\n            \r\n        </li>\r\n    \r\n        <li class=\"comment\" id=\"comment-221082409\">\r\n            <div class=\"meta\">\r\n                <div class=\"author\">\r\n                    <a class=\"avatar image\" rel=\"nofollow\" \r\n                       href=\"\"><img src=\"http://disqus.com/api/users/avatars/danmactough.jpg\"/></a>\r\n                    <a class=\"avatar name\" rel=\"nofollow\" \r\n                       href=\"\">danmactough</a>\r\n                </div>\r\n                <a href=\"#comment-221082409\" class=\"permalink\"><time datetime=\"2006-02-27T05:22:59\">2006-02-27T05:22:59</time></a>\r\n            </div>\r\n            <div class=\"content\"><p>Funny that I just encountered this problem, too. I discovered that the problem was that because my PHP script was using cURL to fetch a feed that was REDIRECTING to FeedBurner, cURL was crapping out unless I set a cURL option to follow redirects (where fopen would follow the redirect by default).</p>\r\n\r\n<p>After I did that, I had no problem.</p></div>\r\n            \r\n        </li>\r\n    \r\n        </ul>\r\n    \r\n        </div>\r\n    ",
  "parentPath": "./content/posts/archives/2005",
  "path": "2005/12/19/feedburner-feeds-give-heartburn-to-php-xml-parsers",
  "needsBuild": true,
  "prevPostPath": "2005/12/18/okay-okay-json-is-pretty-hot",
  "prevPostTitle": "Okay, okay, JSON is pretty hot",
  "nextPostPath": "2005/12/19/sometimes-the-lazyweb-delivers-with-a-deluge",
  "nextPostTitle": "Sometimes the lazyweb delivers with a deluge"
}