I am currently using v5.11 and my line numbers below are taken from v5.11. However, the problem seems to exist since v5.09.
In the file "session/adodb-session2.php" on line 886 the string "if ($debug)" should not be there. It is preventing the fetch mode from being restored properly.
In my testing removing the string "if ($debug)" causes my scripts to function as expected.