Ignore:
Timestamp:
09/26/13 15:41:49 (11 years ago)
Author:
angelo
Message:

Ticket #3491 - Compatibilizar Expresso com novas versoes do PHP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.5.1-evolucao/phpgwapi/inc/adodb/drivers/adodb-ibase.inc.php

    r34 r8222  
    11<?php 
    22/* 
    3 V4.94 23 Jan 2007  (c) 2000-2007 John Lim (jlim#natsoft.com.my). All rights reserved.   
     3V5.18 3 Sep 2012  (c) 2000-2012 John Lim (jlim#natsoft.com). All rights reserved.   
    44  Released under both BSD license and Lesser GPL library license.  
    55  Whenever there is any discrepancy between the two licenses,  
     
    160160        // there are some compat problems with ADODB_COUNTRECS=false and $this->_logsql currently. 
    161161        // it appears that ibase extension cannot support multiple concurrent queryid's 
    162         function &_Execute($sql,$inputarr=false)  
     162        function _Execute($sql,$inputarr=false)  
    163163        { 
    164164        global $ADODB_COUNTRECS; 
     
    167167                        $savecrecs = $ADODB_COUNTRECS; 
    168168                        $ADODB_COUNTRECS = true; // force countrecs 
    169                         $ret =& ADOConnection::_Execute($sql,$inputarr); 
     169                        $ret = ADOConnection::_Execute($sql,$inputarr); 
    170170                        $ADODB_COUNTRECS = $savecrecs; 
    171171                } else { 
    172                         $ret =& ADOConnection::_Execute($sql,$inputarr); 
     172                        $ret = ADOConnection::_Execute($sql,$inputarr); 
    173173                } 
    174174                return $ret; 
     
    188188        } 
    189189         
    190         function &MetaIndexes ($table, $primary = FALSE, $owner=false) 
     190        function MetaIndexes ($table, $primary = FALSE, $owner=false) 
    191191        { 
    192192        // save old fetch mode 
     
    243243         
    244244        // See http://community.borland.com/article/0,1410,25844,00.html 
    245         function RowLock($tables,$where,$col) 
     245        function RowLock($tables,$where,$col=false) 
    246246        { 
    247247                if ($this->autoCommit) $this->BeginTrans(); 
     
    327327                                if  (ADODB_PHPVER >= 0x4050) { // actually 4.0.4 
    328328                                        if ( !isset($iarr[0]) ) $iarr[0] = ''; // PHP5 compat hack 
    329                                         $fnarr =& array_merge( array($sql) , $iarr); 
     329                                        $fnarr = array_merge( array($sql) , $iarr); 
    330330                                        $ret = call_user_func_array($fn,$fnarr); 
    331331                                } else { 
     
    349349                                if (ADODB_PHPVER >= 0x4050) { // actually 4.0.4 
    350350                                        if (sizeof($iarr) == 0) $iarr[0] = ''; // PHP5 compat hack 
    351                                         $fnarr =& array_merge( array($conn,$sql) , $iarr); 
     351                                        $fnarr = array_merge( array($conn,$sql) , $iarr); 
    352352                                        $ret = call_user_func_array($fn,$fnarr); 
    353353                                } else { 
     
    477477        //OPN STUFF end 
    478478                // returns array of ADOFieldObjects for current table 
    479         function &MetaColumns($table)  
     479        function MetaColumns($table, $normalize=true)  
    480480        { 
    481481        global $ADODB_FETCH_MODE; 
     
    744744                        fetchField() is retrieved.              */ 
    745745 
    746         function &FetchField($fieldOffset = -1) 
     746        function FetchField($fieldOffset = -1) 
    747747        { 
    748748                         $fld = new ADOFieldObject; 
     
    823823                $this->fields = $f; 
    824824                if ($this->fetchMode == ADODB_FETCH_ASSOC) { 
    825                         $this->fields = &$this->GetRowAssoc(ADODB_ASSOC_CASE); 
     825                        $this->fields = $this->GetRowAssoc(ADODB_ASSOC_CASE); 
    826826                } else if ($this->fetchMode == ADODB_FETCH_BOTH) { 
    827                         $this->fields =& array_merge($this->fields,$this->GetRowAssoc(ADODB_ASSOC_CASE)); 
     827                        $this->fields = array_merge($this->fields,$this->GetRowAssoc(ADODB_ASSOC_CASE)); 
    828828                } 
    829829                return true; 
Note: See TracChangeset for help on using the changeset viewer.