1--TEST-- 2PDO_Firebird: Bug #74462 Returns only NULLs for boolean fields 3--SKIPIF-- 4<?php if (!extension_loaded('interbase') || !extension_loaded('pdo_firebird')) die('skip'); 5?> 6--FILE-- 7<?php 8require 'testdb.inc'; 9$C = new PDO('firebird:dbname='.$test_base, $user, $password) or die; 10@$C->exec('drop table atable'); 11$C->exec('create table atable (id integer not null, abool boolean)'); 12$C->exec('insert into atable (id, abool) values (1, true)'); 13$C->exec('insert into atable (id, abool) values (2, false)'); 14$C->exec('insert into atable (id, abool) values (3, null)'); 15$S = $C->query('select abool from atable order by id'); 16$D = $S->fetchAll(PDO::FETCH_COLUMN); 17unset($S); 18unset($C); 19var_dump($D); 20?> 21--EXPECT-- 22array(3) { 23 [0]=> 24 bool(true) 25 [1]=> 26 bool(false) 27 [2]=> 28 NULL 29} 30