1--TEST-- 2PDO_DBLIB: national character set values are quoted correctly in queries 3--EXTENSIONS-- 4pdo_dblib 5--SKIPIF-- 6<?php 7require __DIR__ . '/config.inc'; 8getDbConnection(); 9?> 10--FILE-- 11<?php 12require __DIR__ . '/config.inc'; 13 14$db = getDbConnection(); 15 16$stmt = $db->prepare('SELECT :value'); 17$stmt->bindValue(':value', 'foo', PDO::PARAM_STR | PDO::PARAM_STR_NATL); 18$stmt->execute(); 19 20var_dump($stmt->debugDumpParams()); 21?> 22--EXPECT-- 23SQL: [13] SELECT :value 24Sent SQL: [13] SELECT N'foo' 25Params: 1 26Key: Name: [6] :value 27paramno=-1 28name=[6] ":value" 29is_param=1 30param_type=1073741826 31NULL 32