Project

General

Profile

« Previous | Next » 

Revision 2132

Added by darkviper about 9 years ago

! class WbDatabase: all deprecated methods now will trigger a E_USER_DEPRECATED error.

View differences:

WbDatabase.php
479 479
    {
480 480
        $iType = $iType != MYSQLI_NUM ? MYSQLI_ASSOC : MYSQLI_NUM;
481 481

  
482
        if (function_exists('mysqli_fetch_array')) { # Compatibility layer with PHP < 5.3
482
        if (function_exists('mysqli_fetch_all')) { # Compatibility layer with PHP < 5.3
483 483
            $aRetval = mysqli_fetch_all($this->result, $iType);
484 484
        } else {
485 485
            for ($aRetval = array(); ($aTmp = mysqli_fetch_array($this->result, $iType));) { $aRetval[] = $aTmp; }

Also available in: Unified diff