ソースを参照

[ZF-9064]require_once fails on Zend_Log_Exception.php

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@20864 44c647ce-9c0f-0410-b52a-842ac1e357ba
yoshida@zend.co.jp 16 年 前
コミット
10c9650659
1 ファイル変更5 行追加5 行削除
  1. 5 5
      library/Zend/Log.php

+ 5 - 5
library/Zend/Log.php

@@ -106,7 +106,7 @@ class Zend_Log
         }
 
         $log = new Zend_Log;
-        
+
         if (!is_array(current($config))) {
             $log->addWriter(current($config));
         } else {
@@ -164,20 +164,20 @@ class Zend_Log
 
     /**
      * Construct a filter or writer from config
-     * 
+     *
      * @param string $type 'writer' of 'filter'
      * @param mixed $config Zend_Config or Array
      * @param string $namespace
      * @return object
      */
-    protected function _constructFromConfig($type, $config, $namespace) 
+    protected function _constructFromConfig($type, $config, $namespace)
     {
         if ($config instanceof Zend_Config) {
             $config = $config->toArray();
         }
 
         if (!is_array($config) || empty($config)) {
-            require_once 'Zend_Log_Exception.php';
+            require_once 'Zend/Log/Exception.php';
             throw new Zend_Log_Exception(
                 'Configuration must be an array or instance of Zend_Config'
             );
@@ -191,7 +191,7 @@ class Zend_Log
         }
 
         $reflection = new ReflectionClass($className);
-        if (!$reflection->implementsInterface('Zend_Log_FactoryInterface')) {        
+        if (!$reflection->implementsInterface('Zend_Log_FactoryInterface')) {
             require_once 'Zend/Log/Exception.php';
             throw new Zend_Log_Exception(
                 'Driver does not implement Zend_Log_FactoryInterface and can not be constructed from config.'