title: Uncaught exception 'Exception' with message 'Serialization of 'SimpleXMLElement' is not allowed'
body: <p>I am not sure why this is coming up. I am <em>not</em> serializing the XML, but my array that I created from an RSS feed (note this is just a snippet):</p>
  
  <pre><code>$game_data = array (
      'sysreqos'  =&gt; $game-&gt;systemreq-&gt;pc-&gt;sysreqos,
      'sysreqmhz' =&gt; $game-&gt;systemreq-&gt;pc-&gt;sysreqmhz,
      'sysreqmem' =&gt; $game-&gt;systemreq-&gt;pc-&gt;sysreqmem,
      'sysreqdx'  =&gt; $game-&gt;systemreq-&gt;pc-&gt;sysreqdx,
      'sysreqhd'  =&gt; $game-&gt;systemreq-&gt;pc-&gt;sysreqhd,
  );
  </code></pre>
  
  <p>Then I serialize it <code>$some_var = serialize($game_data)</code> and write to a text file <code>fputs($fh,$some_var)</code>.</p>
  
  <p>But it does not get that far, it errors out on the serialize line:</p>
  
  <blockquote>
    <p>Uncaught exception 'Exception' with message 'Serialization of 'SimpleXMLElement' is not allowed'</p>
  </blockquote>