Ignore:
Timestamp:
2010/03/11 10:35:11 (14 years ago)
Author:
kajiwara
Message:

正式版にナイトリービルド版をマージしてみるテスト

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tmp/version-2_5-test/data/module/DB/msql.php

    r15532 r18609  
    2222 * @package    DB 
    2323 * @author     Daniel Convissor <danielc@php.net> 
    24  * @copyright  1997-2005 The PHP Group 
     24 * @copyright  1997-2007 The PHP Group 
    2525 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
    2626 * @version    CVS: $Id$ 
     
    4646 * @package    DB 
    4747 * @author     Daniel Convissor <danielc@php.net> 
    48  * @copyright  1997-2005 The PHP Group 
     48 * @copyright  1997-2007 The PHP Group 
    4949 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 
    50  * @version    Release: @package_version@ 
     50 * @version    Release: 1.7.14RC1 
    5151 * @link       http://pear.php.net/package/DB 
    5252 * @since      Class not functional until Release 1.7.0 
     
    154154     * ); 
    155155     *  
    156      * $db =& DB::connect($dsn, $options); 
     156     * $db = DB::connect($dsn, $options); 
    157157     * if (PEAR::isError($db)) { 
    158158     *     die($db->getMessage()); 
     
    191191                                                      $params); 
    192192        } else { 
    193             ini_set('track_errors', 1); 
     193            @ini_set('track_errors', 1); 
    194194            $this->connection = @call_user_func_array($connect_function, 
    195195                                                      $params); 
    196             ini_set('track_errors', $ini); 
     196            @ini_set('track_errors', $ini); 
    197197        } 
    198198 
     
    252252        // Determine which queries that should return data, and which 
    253253        // should return an error code only. 
    254         if (DB::isManip($query)) { 
     254        if ($this->_checkManip($query)) { 
    255255            $this->_result = $result; 
    256256            return DB_OK; 
     
    351351    function freeResult($result) 
    352352    { 
    353         return @msql_free_result($result); 
     353        return is_resource($result) ? msql_free_result($result) : false; 
    354354    } 
    355355 
     
    444444        do { 
    445445            $this->pushErrorHandling(PEAR_ERROR_RETURN); 
    446             $result =& $this->query("SELECT _seq FROM ${seqname}"); 
     446            $result = $this->query("SELECT _seq FROM ${seqname}"); 
    447447            $this->popErrorHandling(); 
    448448            if ($ondemand && DB::isError($result) && 
     
    532532 
    533533    // }}} 
     534    // {{{ quoteFloat() 
     535 
     536    /** 
     537     * Formats a float value for use within a query in a locale-independent 
     538     * manner. 
     539     * 
     540     * @param float the float value to be quoted. 
     541     * @return string the quoted string. 
     542     * @see DB_common::quoteSmart() 
     543     * @since Method available since release 1.7.8. 
     544     */ 
     545    function quoteFloat($float) { 
     546        return $this->escapeSimple(str_replace(',', '.', strval(floatval($float)))); 
     547    } 
     548      
     549    // }}} 
    534550    // {{{ escapeSimple() 
    535551 
     
    599615    { 
    600616        static $error_regexps; 
     617         
     618        // PHP 5.2+ prepends the function name to $php_errormsg, so we need 
     619        // this hack to work around it, per bug #9599. 
     620        $errormsg = preg_replace('/^msql[a-z_]+\(\): /', '', $errormsg); 
     621 
    601622        if (!isset($error_regexps)) { 
    602623            $error_regexps = array( 
Note: See TracChangeset for help on using the changeset viewer.