Ignore:
Timestamp:
2012/04/04 06:16:29 (12 years ago)
Author:
Seasoft
Message:

#1662 (DEBUG_MODE = true でメモリリーク)
#1669 (変数の初期化漏れ)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/SC_Query.php

    r21710 r21711  
    5353        } 
    5454 
    55         // Debugモード指定 
    56         // 常時ONにするとメモリが解放されない。 
    57         // 連続クエリ実行時に問題が生じる。 
    58         if (DEBUG_MODE) { 
    59             $options['debug'] = PEAR_DB_DEBUG; 
    60         } else { 
    61             $options['debug'] = 0; 
    62         } 
    63  
    64         // 持続的接続オプション 
    65         $options['persistent'] = PEAR_DB_PERSISTENT; 
     55        // オプション 
     56        $options = array( 
     57            // 持続的接続 
     58            'persistent' => PEAR_DB_PERSISTENT, 
     59            // Debugモード 
     60            'debug' => PEAR_DB_DEBUG, 
     61        ); 
    6662 
    6763        // バッファリング trueにするとメモリが解放されない。 
Note: See TracChangeset for help on using the changeset viewer.