title: Inserting into mysql incomplete value field
body: <p>I have to map an xml file and insert its nodes to a wordpress mysql table</p>
  
  <pre><code>    $postTable = $wpdb-&gt;prefix . "posts";
      $nouvelles = simplexml_load_file('annonces.xml'); 
  
      foreach($nouvelles-&gt;ANNONCE as $annonce) {     
      $wpdb-&gt;insert( 
              $postTable, $post_arr =array( 
          'post_author' =&gt; 1, 
          'post_date' =&gt; current_time('mysql', 1) ,
          'post_date_gmt'=&gt;current_time('mysql', 1),
          'post_content' =&gt;utf8_decode($annonce-&gt;TEXTE),
          'post_title'=&gt;utf8_decode($annonce-&gt;TITRE),
          'post_excerpt'=&gt;'',
          'post_status'=&gt;'publish',
          'comment_status'=&gt;'closed',
          'ping_status'=&gt;'closed',
          'post_password'=&gt;'',
          'post_name'=&gt;str_replace(' ','-',utf8_decode($annonce-&gt;TITRE)),
          'to_ping'=&gt;'',
          'pinged'=&gt;'',
          'post_modified'=&gt;date("M d Y H:i:s"),
          'post_modified_gmt'=&gt;gmdate("M d Y H:i:s"),
          'post_content_filtered'=&gt;'',
          'post_parent'=&gt;0,
          'guid'=&gt;Site_url().'?post_type=property&amp;#038;p='.$idPost,
          'menu_order'=&gt;0,
          'post_type'=&gt;'property',
          'post_mime_type'=&gt;'',
          'comment_count'=&gt;''
     ));
   }
  </code></pre>
  
  <p>I have my text nodes in annonce.xml like this:</p>
  
  <pre><code> &lt;TEXTE&gt;PAVILLON TRADITIONNEL EDIFIE SUR SOUS SOL TOTAL !! Vaste salon sejour avec cheminee, grande cuisine amenagee et equipee donnant sur une veranda, 4 chambres, piscine chauffee, PRESTATIONS DE QUALITES&lt;/TEXTE&gt;
  </code></pre>
  
  <p>In mysql posts table only </p>
  
  <blockquote>
    <p>"PAVILLON TRADITIONNEL EDIFIE SUR SOUS SOL TOTAL !! Vaste salon s"</p>
  </blockquote>
  
  <p>is inserted in the <strong>'post_content'</strong> field, also i have two <strong>'ANNONCE'</strong> nodes.
  <strong>Is it a buffer overflow?</strong></p>
  
  <p>PS: 'post_content' field type longtext, i tried to exit the loop in the first iteration, the field is inserted completely, i tried to increase memory_limit, to change output_buffering to on.</p>