PHP  
 PHP_HEAD
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Test Failure Report for ext/pdo_firebird/tests/bug_74462.phpt ('PDO_Firebird: Bug #74462 Returns only NULLs for boolean fields')

Script

1: <?php
2:
require 'testdb.inc';
3:
$C = new PDO('firebird:dbname='.$test_base$user$password) or die;
4: @
$C->exec('drop table atable');
5:
$C->exec('create table atable (id integer not null, abool boolean)');
6:
$C->exec('insert into atable (id, abool) values (1, true)');
7:
$C->exec('insert into atable (id, abool) values (2, false)');
8:
$C->exec('insert into atable (id, abool) values (3, null)');
9:
$S $C->query('select abool from atable order by id');
10:
$D $S->fetchAll(PDO::FETCH_COLUMN);
11: unset(
$S);
12: unset(
$C);
13:
var_dump($D);
14:
?>
15:

Expected

array(3) {
  [0]=>
  bool(true)
  [1]=>
  bool(false)
  [2]=>
  NULL
}

Output

Fatal error: Uncaught Error: Call to a member function fetchAll() on bool in /var/php_gcov/PHP_HEAD/ext/pdo_firebird/tests/bug_74462.php:10
Stack trace:
#0 {main}
  thrown in /var/php_gcov/PHP_HEAD/ext/pdo_firebird/tests/bug_74462.php on line 10

Warning: ibase_drop_db(): lock time-out on wait transaction object /tmp/php_ibase_testglFtEW is in use  in /var/php_gcov/PHP_HEAD/ext/pdo_firebird/tests/testdb.inc on line 30

Diff

001+ Fatal error: Uncaught Error: Call to a member function fetchAll() on bool in /var/php_gcov/PHP_HEAD/ext/pdo_firebird/tests/bug_74462.php:10
002+ Stack trace:
003+ #0 {main}
004+   thrown in /var/php_gcov/PHP_HEAD/ext/pdo_firebird/tests/bug_74462.php on line 10
005+ 
006+ Warning: ibase_drop_db(): lock time-out on wait transaction object /tmp/php_ibase_testglFtEW is in use  in /var/php_gcov/PHP_HEAD/ext/pdo_firebird/tests/testdb.inc on line 30
001- array(3) {
002-   [0]=>
003-   bool(true)
004-   [1]=>
005-   bool(false)
006-   [2]=>
007-   NULL
008- }

 

Generated at Thu, 19 Jul 2018 09:51:32 +0000 (2 days ago)

Copyright © 2005-2018 The PHP Group
All rights reserved.