Req #52384 [Fbk->ReO]: PDOStatement::debugDumpParams does not emit the bind parameter value

From: Date: Tue, 12 Jul 2016 14:12:01 +0000
Subject: Req #52384 [Fbk->ReO]: PDOStatement::debugDumpParams does not emit the bind parameter value
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-202240@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=52384&edit=1 ID: 52384 Updated by: jpauli@php.net Reported by: jonah dot harris at gmail dot com Summary: PDOStatement::debugDumpParams does not emit the bind parameter value -Status: Feedback +Status: Re-Opened Type: Feature/Change Request Package: PDO related PHP Version: Irrelevant Assigned To: bishop Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2016-07-12 09:43:10] jpauli@php.net Please try using this snapshot: http://snaps.php.net/php-trunk-latest.tar.gz For Windows: http://windows.php.net/snapshots/ ------------------------------------------------------------------------ [2016-07-09 11:42:55] cmb@php.net Current behavior confirmed: <https://3v4l.org/lfMaV>. > Could we please get this fixes ASAP! In a strict sense this is not a bug, so it can't be fixed. The suggested improvement seems to be reasonable, though. A Github PR for PHP-7.1 including a PHPT (and/or fixing existing PHPTs) would certainly be welcome. ------------------------------------------------------------------------ [2016-05-23 16:32:58] aaron at acwpd dot com Confirming this is still present on PHP 7.0.6-8+donate.sury.org~trusty+1 on Ubuntu ubuntu1404-x64 (via vagrant box puphpet/ubuntu1404-x64) ------------------------------------------------------------------------ [2015-12-07 18:07:17] cjromb at gmail dot com It's still an issue in 5.6.16 Input: $stmt = $dbh->prepare("SELECT * FROM clients WHERE name LIKE :name"); $name = "%Boy%"; $stmt->bindParam(':name',$name, PDO::PARAM_STR); if($stmt->execute()): echo "It executed. Here's what it executed"; $stmt->debugDumpParams(); endif; // shortened for this comment OUTPUT It executed. Here's what it executedSQL: [43] SELECT * FROM clients WHERE name LIKE :name Params: 1 Key: Name: [5] :name paramno=-1 name=[5] ":name" is_param=1 param_type=2 ^^ Note no param value! ------------------------------------------------------------------------ [2015-10-31 22:17:12] knl at bitflop dot com The problem still exist in PHP 5.6.14 on Debian Jessie. Could we please get this fixes ASAP! ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=52384 -- Edit this bug report at https://bugs.php.net/bug.php?id=52384&edit=1

« previous php.bugs (#202240) next »