>>56
確かに5.3で挙動が変わってるナー
バッファリングした結果セットをでっちあげちまえばいいんだ

class BufferedResult {
  private $buffer;
  public function __construct($result) { while ($row = $result->fetchRow()) { $this->buffer[] = $row; }}
  public function fetchRow($mode) { return array_shift($this->buffer); }
  public function fetchAll() { return array_splice($this->buffer, 0); }
}

こんなクラスを作ってこうだ

+ if (SQLite使用時 && version_compair(PHP_VERSION, '5.3') >= 0) {
+   $result = BufferedResult($result);
+ }
$db->disconnect();
return $result;