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/Driver/Function/Common.php

    r20764 r23022  
    4343// +----------------------------------------------------------------------+ 
    4444// 
    45 // $Id: Common.php,v 1.21 2008/02/17 18:51:39 quipo Exp $ 
     45// $Id: Common.php 327310 2012-08-27 15:16:18Z danielc $ 
    4646// 
    4747 
     
    7979     * @access public 
    8080     */ 
    81     function &executeStoredProc($name, $params = null, $types = null, $result_class = true, $result_wrap_class = false) 
    82     { 
    83         $db =& $this->getDBInstance(); 
    84         if (PEAR::isError($db)) { 
     81    function executeStoredProc($name, $params = null, $types = null, $result_class = true, $result_wrap_class = false) 
     82    { 
     83        $db = $this->getDBInstance(); 
     84        if (MDB2::isError($db)) { 
    8585            return $db; 
    8686        } 
    8787 
    88         $error =& $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null, 
     88        $error = $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null, 
    8989            'method not implemented', __FUNCTION__); 
    9090        return $error; 
     
    146146    function unixtimestamp($expression) 
    147147    { 
    148         $db =& $this->getDBInstance(); 
    149         if (PEAR::isError($db)) { 
     148        $db = $this->getDBInstance(); 
     149        if (MDB2::isError($db)) { 
    150150            return $db; 
    151151        } 
    152152 
    153         $error =& $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null, 
     153        $error = $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null, 
    154154            'method not implemented', __FUNCTION__); 
    155155        return $error; 
     
    167167    function substring($value, $position = 1, $length = null) 
    168168    { 
    169         if (!is_null($length)) { 
     169        if (null !== $length) { 
    170170            return "SUBSTRING($value FROM $position FOR $length)"; 
    171171        } 
     
    279279    function guid() 
    280280    { 
    281         $db =& $this->getDBInstance(); 
    282         if (PEAR::isError($db)) { 
     281        $db = $this->getDBInstance(); 
     282        if (MDB2::isError($db)) { 
    283283            return $db; 
    284284        } 
    285285 
    286         $error =& $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null, 
     286        $error = $db->raiseError(MDB2_ERROR_UNSUPPORTED, null, null, 
    287287            'method not implemented', __FUNCTION__); 
    288288        return $error; 
Note: See TracChangeset for help on using the changeset viewer.