Ignore:
Timestamp:
2013/08/02 13:22:57 (11 years ago)
Author:
Seasoft
Message:

#2322 (セッションのGC処理がエラーとなる)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_13-dev/data/module/MDB2/Iterator.php

    r20764 r23022  
    4343// +----------------------------------------------------------------------+ 
    4444// 
    45 // $Id: Iterator.php,v 1.22 2006/05/06 14:03:41 lsmith Exp $ 
     45// $Id: Iterator.php 327310 2012-08-27 15:16:18Z danielc $ 
    4646 
    4747/** 
     
    5555{ 
    5656    protected $fetchmode; 
     57    /** 
     58     * @var MDB2_Result_Common 
     59     */ 
    5760    protected $result; 
    5861    protected $row; 
     
    6366     * Constructor 
    6467     */ 
    65     public function __construct($result, $fetchmode = MDB2_FETCHMODE_DEFAULT) 
     68    public function __construct(MDB2_Result_Common $result, $fetchmode = MDB2_FETCHMODE_DEFAULT) 
    6669    { 
    6770        $this->result = $result; 
     
    113116    public function current() 
    114117    { 
    115         if (is_null($this->row)) { 
     118        if (null === $this->row) { 
    116119            $row = $this->result->fetchRow($this->fetchmode); 
    117             if (PEAR::isError($row)) { 
     120            if (MDB2::isError($row)) { 
    118121                $row = false; 
    119122            } 
Note: See TracChangeset for help on using the changeset viewer.