--TEST-- PDO_PGSQL: PDO_FETCH_CLASSTYPE --SKIPIF-- --FILE-- ===DONE=== --EXPECTF-- array(4) { [0]=> array(3) { [0]=> string(8) "stdClass" [1]=> int(1) [2]=> string(1) "A" } [1]=> array(3) { [0]=> string(5) "Test1" [1]=> int(2) [2]=> string(1) "B" } [2]=> array(3) { [0]=> string(5) "Test2" [1]=> int(3) [2]=> string(1) "C" } [3]=> array(3) { [0]=> NULL [1]=> int(4) [2]=> string(1) "D" } } Test1::__construct() Test2::__construct() Test3::__construct() array(4) { [0]=> object(stdClass)#%d (2) { ["id"]=> int(1) ["val"]=> string(1) "A" } [1]=> object(Test1)#%d (2) { ["id"]=> int(2) ["val"]=> string(1) "B" } [2]=> object(Test2)#%d (2) { ["id"]=> int(3) ["val"]=> string(1) "C" } [3]=> object(Test3)#%d (2) { ["id"]=> int(4) ["val"]=> string(1) "D" } } ===DONE===