1--TEST-- 2GH-8576 (Bad interpretation of length when char is UTF-8) 3--EXTENSIONS-- 4pdo_firebird 5--SKIPIF-- 6<?php require 'skipif.inc'; ?> 7--XLEAK-- 8A bug in firebird causes a memory leak when calling `isc_attach_database()`. 9See https://github.com/FirebirdSQL/firebird/issues/7849 10--FILE-- 11<?php 12require 'testdb.inc'; 13 14$dbh = getDbConnection(); 15$dbh->exec("CREATE TABLE gh8576 (name CHAR(1) CHARACTER SET UTF8)"); 16$dbh->exec("INSERT INTO gh8576 VALUES ('A')"); 17$stmt = $dbh->query("SELECT * FROM gh8576"); 18var_dump($stmt->fetchAll()); 19?> 20--EXPECT-- 21array(1) { 22 [0]=> 23 array(2) { 24 ["NAME"]=> 25 string(1) "A" 26 [0]=> 27 string(1) "A" 28 } 29} 30--CLEAN-- 31<?php 32require 'testdb.inc'; 33$dbh = getDbConnection(); 34@$dbh->exec("DROP TABLE gh8576"); 35unset($dbh); 36?> 37