1--TEST-- 2Testing PDOStatement::debugDumpParams() with bound params 3--EXTENSIONS-- 4pdo_sqlite 5--FILE-- 6<?php 7 8$db = new PDO('sqlite::memory:'); 9 10$x= $db->prepare('select :a, :b, ?'); 11$x->bindValue(':a', 1, PDO::PARAM_INT); 12$x->bindValue(':b', 'foo'); 13$x->bindValue(3, 1313); 14var_dump($x->debugDumpParams()); 15 16?> 17--EXPECT-- 18SQL: [16] select :a, :b, ? 19Params: 3 20Key: Name: [2] :a 21paramno=-1 22name=[2] ":a" 23is_param=1 24param_type=1 25Key: Name: [2] :b 26paramno=-1 27name=[2] ":b" 28is_param=1 29param_type=2 30Key: Position #2: 31paramno=2 32name=[0] "" 33is_param=1 34param_type=2 35NULL 36