PHP warning

include(finfo.php): failed to open stream: No such file or directory

C:\xampp\htdocs\NewsShowcase\framework\YiiBase.php(421)

409                         {
410                             include($classFile);
411                             if(YII_DEBUG && basename(realpath($classFile))!==$className.'.php')
412                                 throw new CException(Yii::t('yii','Class name "{class}" does not match class file "{file}".', array(
413                                     '{class}'=>$className,
414                                     '{file}'=>$classFile,
415                                 )));
416                             break;
417                         }
418                     }
419                 }
420                 else
421                     include($className.'.php');
422             }
423             else  // class name with namespace in PHP 5.3
424             {
425                 $namespace=str_replace('\\','.',ltrim($className,'\\'));
426                 if(($path=self::getPathOfAlias($namespace))!==false)
427                     include($path.'.php');
428                 else
429                     return false;
430             }
431             return class_exists($className,false) || interface_exists($className,false);
432         }
433         return true;

Stack Trace

#2
+
 C:\xampp\htdocs\NewsShowcase\protected\modules\media\models\DDMediaFile.php(97): spl_autoload_call("finfo")
092 if(!function_exists('mime_content_type')) {
093     function mime_content_type($filename)
094     {
095         if(!is_file($filename))
096             return false;
097         $finfo = new finfo(FILEINFO_MIME);
098         //$finfo = new finfo('C:\xampp\htdocs\NewsShowcase\files\zxcad\Full Colors.jpg');        
099         $mime_type = $finfo->file($finfo, $filename);
100         finfo_close($finfo);
101 
102         return $mime_type;
#3
+
 C:\xampp\htdocs\NewsShowcase\protected\modules\media\models\DDMediaFile.php(63): mime_content_type("C:/xampp/htdocs/NewsShowcase/files/./foto.jpg")
58             'type'=>'file',
59             'path'=>$this->filePath,
60             'name'=>basename($this->filePath),
61             'size'=>$size,
62             'sizeFormatted'=>$this->getSizeFormatted($size),
63             'mimeType'=>mime_content_type($this->filePath),
64             'mTime'=>$this->getFileMTime($this->filePath),
65         );
66     } // }}} 
67     // {{{ getSizeFormatted
68     public function getSizeFormatted($a_bytes)
#4
+
 C:\xampp\htdocs\NewsShowcase\protected\modules\media\models\DDMediaDirectory.php(58): DDMediaFile->getMediaStats()
53                     // dot file/hidden?
54                     if(substr($entry,0,1)=='.') {
55                         if($this->showHiddenFiles==true)
56                             $files[$entryPath] = $file->getMediaStats();
57                     } else {
58                         $files[$entryPath] = $file->getMediaStats();
59                     }
60                 }
61             }
62             ksort($dirs);
63             ksort($files);
2013-02-20 22:42:16 Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7 Yii Framework/1.1.13