Changeset 1155

Show
Ignore:
Timestamp:
12/25/06 14:34:54 (6 years ago)
Author:
benoitg
Message:
  • Fix all PHP 5.2 compatibility issues I could find. This needs further testing by someone running it in

production

Location:
trunk/wifidog-auth/wifidog/classes
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/classes/Content.php

    r1147 r1155  
    382382            $candidate_reflector = new ReflectionClass($candidate); 
    383383            //echo"classname: $classname, candidate: $candidate<br>"; 
    384             if ($classname_reflector->isSubclassOf($candidate_reflector)) { 
     384            if ($candidate == $classname || $classname_reflector->isSubclassOf($candidate_reflector)) { 
     385                //As of PHP5.2, it would apear that isSubclass means a strict sublclass, so the first check was added. 
    385386                //The content meets the criteria 
    386387                //echo "TRUE<br>"; 
     
    466467            $content_type_filter = ContentTypeFilter :: getObject(array ()); 
    467468        } 
    468  
     469//pretty_print_r($content_type_filter); 
    469470        $i = 0; 
    470471        $tab = array (); 
  • trunk/wifidog-auth/wifidog/classes/ContentTypeFilter.php

    r1118 r1155  
    104104        { 
    105105            foreach ($this->criteria_array as $criteria) { 
    106                 //echo "call_user_func_array called with: "; 
     106                //echo "call_user_func_array called on $classname with: "; 
    107107                //pretty_print_r($criteria); 
    108108 
  • trunk/wifidog-auth/wifidog/classes/Utils.php

    r1151 r1155  
    132132            if($debug) 
    133133            print "$command"; 
    134             exec($command.'  2>&1', & $output, & $retval); 
     134            $retval = null; 
     135            exec($command.'  2>&1', $output, $retval); 
    135136            if($debug){ 
    136137                if ($retval != 0)