1--TEST-- 2Pdo\Pgsql getWarningCount 3--EXTENSIONS-- 4pdo_pgsql 5--SKIPIF-- 6<?php 7require __DIR__ . '/config.inc'; 8require dirname(__DIR__, 2) . '/pdo/tests/pdo_test.inc'; 9PDOTest::skip(); 10?> 11--FILE-- 12<?php 13 14require_once __DIR__ . "/config.inc"; 15 16$db = Pdo::connect($config['ENV']['PDOTEST_DSN']); 17if (!$db instanceof Pdo\Pgsql) { 18 echo "Wrong class type. Should be Pdo\Pgsql but is " . get_class($db) . "\n"; 19} 20 21echo $db->escapeIdentifier("This is a quote\"") . "\n"; 22 23try { 24 $db->escapeIdentifier("aa\xC3\xC3\xC3"); 25} catch (PDOException $e) { 26 echo $e->getMessage() . "\n"; 27} 28 29--EXPECT-- 30"This is a quote""" 31SQLSTATE[HY000]: General error: 7 incomplete multibyte character 32