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-oci8po.inc.php

    r34 r8222  
    11<?php 
    22/* 
    3 V4.94 23 Jan 2007  (c) 2000-2007 John Lim. All rights reserved. 
     3V5.18 3 Sep 2012  (c) 2000-2012 John Lim. All rights reserved. 
    44  Released under both BSD license and Lesser GPL library license.  
    55  Whenever there is any discrepancy between the two licenses,  
     
    3535        } 
    3636         
    37         function Param($name) 
     37        function Param($name,$type='C') 
    3838        { 
    3939                return '?'; 
     
    5050        } 
    5151         
     52        function Execute($sql,$inputarr=false)  
     53        { 
     54                return ADOConnection::Execute($sql,$inputarr); 
     55        } 
     56         
    5257        // emulate handling of parameters ? ?, replacing with :bind0 :bind1 
    53         function _query($sql,$inputarr) 
     58        function _query($sql,$inputarr=false) 
    5459        { 
    5560                if (is_array($inputarr)) { 
     
    99104         
    100105        // lowercase field names... 
    101         function &_FetchField($fieldOffset = -1) 
     106        function _FetchField($fieldOffset = -1) 
    102107        { 
    103108                 $fld = new ADOFieldObject; 
    104109                 $fieldOffset += 1; 
    105                  $fld->name = strtolower(OCIcolumnname($this->_queryID, $fieldOffset)); 
     110                 $fld->name = OCIcolumnname($this->_queryID, $fieldOffset); 
     111                 if (ADODB_ASSOC_CASE == 0) $fld->name = strtolower($fld->name); 
    106112                 $fld->type = OCIcolumntype($this->_queryID, $fieldOffset); 
    107113                 $fld->max_length = OCIcolumnsize($this->_queryID, $fieldOffset); 
     
    150156         
    151157        /* Optimize SelectLimit() by using OCIFetch() instead of OCIFetchInto() */ 
    152         function &GetArrayLimit($nrows,$offset=-1)  
     158        function GetArrayLimit($nrows,$offset=-1)  
    153159        { 
    154160                if ($offset <= 0) { 
Note: See TracChangeset for help on using the changeset viewer.