title: Why PDO debugDumpParams truncate query
body: <p>I found same question <a href="https://stackoverflow.com/questions/20848115/pdo-truncates-my-sql-string-in-prepared-statement-tries-to-bind-parameter-numbe">here</a> but it unanswered, and i provide more simple example here, and try ask again...</p>
  
  <p>Code:</p>
  
  <pre><code>&lt;?php
  $dbh = new PDO('mysql:dbname=test;host=127.0.0.1', 'root');
  $sth = $dbh-&gt;prepare("
      SELECT '
          Dumps the informations contained by a prepared statement directly on the output. It will provide the SQL query in use, the number of parameters used (Params), the list of parameters, with their name, type (paramtype) as an integer, their key name or position, and the position in the query (if this is supported by the PDO driver, otherwise, it will be -1).
          This is a debug function, which dump directly the data on the normal output.
          Tip:
          As with anything that outputs its result directly to the browser, the output-control functions can be used to capture the output of this function, and save it in a string (for example).
          This will only dumps the parameters in the statement at the moment of the dump. Extra parameters are not stored in the statement, and not displayed.
      '
  ");
  $sth-&gt;execute();
  $sth-&gt;debugDumpParams();
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>SQL: [835] 
      SELECT '
          Dumps the informations contained by a prepared statement directly on the output. It will provide the SQL query in use, the number of parameters used (Params), the list of parameters, with their name, type (paramtype) as an integer, their key name or position, and the position in the query (if this is supported by the PDO driver, otherwise, it will be -1).
          This is a debug function, which dump directly the data on the normal output.
          Tip:
          As with anythi
  Params:  0
  </code></pre>
  
  <p>Why it occurs, and how fix it?
  <br> Thanks in advance!</p>