|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31282 Unexpected result
Submitted: 2004-12-24 09:52 UTC Modified: 2004-12-24 11:00 UTC
From: robertkraig at gmail dot com Assigned:
Status: Not a bug Package: SimpleXML related
PHP Version: 5.0.3 OS: Linux
Private report: No CVE-ID: None
 [2004-12-24 09:52 UTC] robertkraig at gmail dot com
Well, essentially, what i did was put these code in a php file to see how the array was structured in order to get content for my rss feed,


$file = "";
$rss = simplexml_load_file($file); 
print "<pre>"; 
print "</pre>";

and i was expecting it to parse out all of the xml child entities exactly how it did with every other entity, but what it did was print out 1 missing arrays.

Reproduce code:

      <description>I created an account on last night. I spent my late night putting all my current and old bookmarks...</description>
      <guid isPermaLink="false">4254@</guid>
      <content:encoded><![CDATA[<p>I created an account on <a href=""></a> last night.  I spent my late night putting all my current and old bookmarks on the site, and catagorizing them all.  I found a bookmarks.html from Firefox (Firebird at the time) from over a year ago on my old 40 gig on my server.  I missed these bookmarks and I'm so glad to have them back!</p>

<p>The site is really fun to keep up on, and a great way to keep track of my bookmarks.. or just links that I dont want to forget.  Im using the recommendation from <a href="">Jeff Veen's site</a>.  He uses <a href="">RSS Digest</a> to create a javascript applet that displays your rss feed.  (Note: I just found both these links in my account). I added this to my sidebar on this blog.  It updates from my feed every 30 minutes. Cool stuff!</p>]]></content:encoded>

Expected result:
array with every single entity, but instead, because of <![CDATA[ i get a blank pointer

Actual result:
        object(SimpleXMLElement)#10 (0) {


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-24 11:00 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

No bugs here.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 05 04:01:29 2024 UTC