Changeset 590

Show
Ignore:
Timestamp:
04/20/07 18:41:19 (2 years ago)
Author:
schst
Message:

Use outer iteration in SimpleTest? (due to a bug in PHP 5.2.1), must be included in patch, if this works on other systems as well.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/org/simpletest/reflection_php5.php

    r558 r590  
    125125            return array_unique($methods); 
    126126        } 
    127          
     127 
    128128        /** 
    129129         *    Checks to see if the method signature has to be tightly 
     
    171171        function _onlyParents($interfaces) { 
    172172            $parents = array(); 
    173             foreach ($interfaces as $interface) { 
    174                 foreach($interfaces as $possible_parent) { 
     173            foreach (new ArrayObject($interfaces) as $interface) { 
     174                foreach (new ArrayObject($interfaces) as $possible_parent) { 
    175175                    if ($interface->getName() == $possible_parent->getName()) { 
    176176                        continue; 
     
    193193            return $interface->getMethod($name)->isAbstract(); 
    194194        } 
    195          
     195 
    196196        /** 
    197197         *    Gets the source code matching the declaration 
     
    209209                return 'function __call($method, $arguments)'; 
    210210            } 
     211 
    211212            if (version_compare(phpversion(), '5.1.0', '>=')) { 
    212213                if (in_array($name, array('__get', '__isset', $name == '__unset'))) { 
     
    222223            return "function $name()"; 
    223224        } 
    224          
     225 
    225226        /** 
    226227         *    For a signature specified in an interface, full