title: PDO fetch causes 500 internal error
body: <p>I'm getting an error when I try to fetch the result of a PDO query. I've narrowed it down to the content of the column, but I'm not sure why it's causing this, or how to fix this. This is not a typical PHP error as there's nothing in the error log. In fact, I think it's crashing PHP altogether. Any ideas on what the issue is? </p>
  
  <p>Note: the DB variable is a PDO connection to ODBC. (going to MSSQL)</p>
  
  <pre><code>$query = $Z-&gt;DB-&gt;query("SELECT TOP 1 id, ticket, typeid, issued, comment, privatecomment FROM Handheld_IncomingTickets WHERE processed is null ORDER BY issued asc");
  // No error.
  if (!$query-&gt;execute()) {
      $moreData = false;
      echo dump($query-&gt;errorInfo()) ." ".__FILE__." at Line: ".__LINE__;
      break;
  }
  // No error.
  $record = $query-&gt;fetch(PDO::FETCH_ASSOC);
  // ERROR!
  </code></pre>
  
  <p>This is the content of the comment column of one of the records that cause the 500 error. This is just test data, the comment column wouldn't have a dump of the $_POST variable in production, but i'm confused as to why it matters. I could clear out all the values that look like this, but if I don't find out what's causing the issue, I can't be certain that this won't happen again with valid data.</p>
  
  <pre><code>array (   'act' =&gt; 'push',   'ticket' =&gt; '35-0191',   'ticket_int' =&gt; '191',   'vehicleid' =&gt; 'null',   'plate' =&gt; '028RLS',   'platetypeid' =&gt; 'null',   'provid' =&gt; '9',   'makeid' =&gt; '1',   'typeid' =&gt; '1',   'colourid' =&gt; '1',   'year' =&gt; 'null',   'locationid' =&gt; 'null',   'permitno' =&gt; 'null',   'sempermitid' =&gt; 'null',   'tickettype' =&gt; 'null',   'issued' =&gt; '2012-10-02%2013%3A22%3A31',   'violationtypeid' =&gt; 'null',   'writer' =&gt; '17',   'fine' =&gt; 'null',   'towing' =&gt; '',   'comment' =&gt; '',   'privatecomment' =&gt; '',   'synced' =&gt; 'null', )
  </code></pre>
  
  <p>This is the error that I see in the event logs on the server.</p>
  
  <pre><code>Faulting application name: php-cgi.exe, version: 5.3.12.0, time stamp: 0x4fa94d46
  Faulting module name: php5.dll, version: 5.3.12.0, time stamp: 0x4fa94db5
  Exception code: 0xc0000005
  Fault offset: 0x0000c3b6
  Faulting process id: 0x2a0
  Faulting application start time: 0x01cdaadbbdc7fb98
  Faulting application path: C:\Program Files (x86)\PHP\v5.3\php-cgi.exe
  Faulting module path: C:\Program Files (x86)\PHP\v5.3\php5.dll
  Report Id: fbc37d92-16ce-11e2-9dcf-ca21ba90502f
  </code></pre>