1--TEST-- 2Bug #81343 pdo_pgsql: Inconsitent boolean conversion after calling closeCursor() 3--EXTENSIONS-- 4pdo 5pdo_pgsql 6--SKIPIF-- 7<?php 8require __DIR__ . '/config.inc'; 9require __DIR__ . '/../../../ext/pdo/tests/pdo_test.inc'; 10PDOTest::skip(); 11?> 12--FILE-- 13<?php 14require __DIR__ . '/../../../ext/pdo/tests/pdo_test.inc'; 15$pdo = PDOTest::test_factory(__DIR__ . '/common.phpt'); 16$pdo->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, false); 17$sth = $pdo->prepare("select false where 2=?"); 18 19for ($i = 0; $i < 2; $i++) { 20 $sth->execute([2]); 21 var_dump($sth->fetchColumn(0)); 22 $sth->closeCursor(); 23} 24?> 25--EXPECT-- 26bool(false) 27bool(false) 28