title: PHP PDO long sql statement no response
body: <p>We use PHP 5.3.2, Ubuntu, MySQL 5.1.41, CodeIgniter 2.0.0 with simple PDO driver.</p>
  
  <p>Problem is if we send a long string (about 11, 12 kbytes in size) in a query, neither PHP, neither the MySQL returns any errors or responses.
  No syntax errors, no warnings, no HTTP errors, no nothing. The PHP just keeps "pending".</p>
  
  <p>If the data string is shorter by a few kbytes, the query runs and the data is inserted to the database correctly. </p>
  
  <p>We believe that the MySQL doesn't even get the query that we sent if it's larger than ~11kbytes.</p>
  
  <p>Either <code>PDO::prepare</code> or <code>PDOStatement::execute</code> fails.</p>
  
  <p>The query:</p>
  
  <pre><code>select simpleupdatestoredprocedure(15, 'loooong string');
  </code></pre>
  
  <p>Function called:</p>
  
  <pre><code>function _execute($sql)
  {
      $q = $this-&gt;conn-&gt;prepare($sql);
      $q-&gt;execute();
  
      return $q; 
  }
  </code></pre>
  
  <p>Where <code>$this-&gt;conn</code> is the main PDO object and <code>$q</code> is a <code>PDOStatement</code> object. (We do not use any CodeIgniter specific stuff in this part of code.)</p>
  
  <p>Is there some hidden setting that limits the length of data or query that can be passed?
  If necessary, we'll find the exact number of bytes when this problem occurs.</p>