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