Changeset 444 for trunk/lib/simpletest

Show
Ignore:
Timestamp:
05/28/07 14:33:08 (2 years ago)
Author:
laurentj
Message:

fix bug #180 : because of a bug in PDO, jDbPdoResulset::fetch was not called when we used this resultset as an iterator, so results were not stored in an object, but in an array. This causes bugs in jDAO too. Added new unit tests on jDb and jDao

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/simpletest/compatibility.php

    r289 r444  
    175175         *    @static 
    176176         */ 
    177         function getStackTrace() { 
     177        static function getStackTrace() { 
    178178            if (function_exists('debug_backtrace')) { 
    179179                return array_reverse(debug_backtrace()); 
  • trunk/lib/simpletest/compatibility.php

    r289 r444  
    175175         *    @static 
    176176         */ 
    177         function getStackTrace() { 
     177        static function getStackTrace() { 
    178178            if (function_exists('debug_backtrace')) { 
    179179                return array_reverse(debug_backtrace()); 
Download in other formats: Unified Diff Zip Archive