Ignore:
Timestamp:
2011/02/27 01:13:17 (11 years ago)
Author:
shutta
Message:

refs #515
PHP5.3での非推奨関数split()をexplode(),preg_split()へ置き換え。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/helper/SC_Helper_DB.php

    r20284 r20428  
    8686        // 正常に接続されている場合 
    8787        if(!$objQuery->isError()) { 
    88             list($db_type) = split(":", $dsn); 
     88            list($db_type) = explode(":", $dsn); 
    8989 
    9090            // カラムリストを取得 
     
    12421242    function sfIsRecord($table, $col, $arrval, $addwhere = "") { 
    12431243        $objQuery =& SC_Query::getSingletonInstance(); 
    1244         $arrCol = split("[, ]", $col); 
     1244        $arrCol = preg_split("/[, ]/", $col); 
    12451245 
    12461246        $where = "del_flg = 0"; 
Note: See TracChangeset for help on using the changeset viewer.