Edit report at https://bugs.php.net/bug.php?id=52384&edit=1
ID: 52384
Updated by: bishop@php.net
Reported by: jonah dot harris at gmail dot com
Summary: PDOStatement::debugDumpParams does not emit the bind
parameter value
-Status: Re-Opened
+Status: Closed
Type: Feature/Change Request
Package: PDO related
PHP Version: Irrelevant
Assigned To: bishop
Block user comment: N
Private report: N
New Comment:
@jpauli PR 1999 updated to fix PostgreSQL and other major RDMS drivers.
Previous Comments:
------------------------------------------------------------------------
[2016-07-12 14:12:36] jpauli@php.net
The test keeps failing under pgsql , please check it, as well as other RDBMS.
------------------------------------------------------------------------
[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!
------------------------------------------------------------------------
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