Ticket #204: pear_style_filter_class.diff

File pear_style_filter_class.diff, 0.7 kB (added by Markus Fischer <markus@fischer.name>, 7 months ago)

Similiar to the other patch, this time Phing::import() to import PEAR-Style custom filters

  • classes/phing/Phing.php

    old new  
    962962 
    963963                Phing::__import($path, $classpath); 
    964964 
     965        // If we still fail at this point, try name resolution from PEAR, which 
     966        // means $dotPath == full classpath (except the separator) 
     967        if (!class_exists($classname)) { 
     968            $classname = str_replace('.', '_', $dotPath); 
     969            // TODO: shouldn't there be a final check whether the class is 
     970            // *really* there and throw some kind of exception if not? 
     971        } 
     972 
    965973                return $classname; 
    966974        } 
    967975