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