Ticket #73: PhingFile.php-rev147.patch

File PhingFile.php-rev147.patch, 0.5 kB (added by micha@aichler.net, 2 years ago)

Patch for PhingFile against revision 147

  • PhingFile.php

    old new  
    166166        // that's a lastIndexOf 
    167167        $index = ((($res = strrpos($this->path, self::$separator)) === false) ? -1 : $res); 
    168168        if ($index < $this->prefixLength) { 
    169             if (($this->prefixLength > 0) && (strlen($this->path > $this->prefixLength))) { 
     169            if (($this->prefixLength > 0) && (strlen($this->path) > $this->prefixLength))) { 
    170170                return substr($this->path, 0, $this->prefixLength); 
    171171            } 
    172172            return null;