Bug #69356 [NEW]: Kovpak

From: Date: Thu, 02 Apr 2015 11:47:28 +0000
Subject: Bug #69356 [NEW]: Kovpak
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-191784@lists.php.net to get a copy of this message
From: cn007b at gmail dot com Operating system: Ubuntu 14.04 PHP version: 5.5.23 Package: PDO MySQL Bug Type: Bug Bug description:Kovpak Description: ------------ PDO debugDumpParams truncate query: http://stackoverflow.com/questions/29410151/why-pdo-debugdumpparams-truncate-query Test script: --------------- <?php $dbh = new PDO('mysql:dbname=test;host=127.0.0.1', 'root'); $sth = $dbh->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->execute(); $sth->debugDumpParams(); Actual result: -------------- 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 -- Edit bug report at https://bugs.php.net/bug.php?id=69356&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69356&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69356&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69356&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69356&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69356&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69356&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69356&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69356&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69356&r=support Expected behavior: https://bugs.php.net/fix.php?id=69356&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69356&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69356&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69356&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69356&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69356&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69356&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69356&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69356&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69356&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69356&r=mysqlcfg

« previous php.bugs (#191784) next »