--TEST-- PDO Fetch Test with PDO::FETCH_OBJ --DESCRIPTION-- Basic verification for "PDOStatement::fetchAll(PDO::FETCH_OBJ)”. --ENV-- PHPT_EXEC=true --SKIPIF-- --FILE-- fetchAll($fetchMode)); // Cleanup DropTable($conn1, $tableName); $stmt1 = null; $conn1 = null; EndTest($testName); } //-------------------------------------------------------------------- // Repro // //-------------------------------------------------------------------- function Repro() { try { FetchAll(false, PDO::FETCH_OBJ); } catch (Exception $e) { echo $e->getMessage(); } } Repro(); ?> --EXPECTF-- array(3) { [0]=> object(stdClass)#%d (2) { ["id"]=> string(1) "1" ["val"]=> string(1) "A" } [1]=> object(stdClass)#%d (2) { ["id"]=> string(1) "2" ["val"]=> string(1) "B" } [2]=> object(stdClass)#%d (2) { ["id"]=> string(1) "3" ["val"]=> string(1) "C" } } Test "PDO Statement - Fetch All" completed successfully.