Explorar el Código

[ZF-7918] Zend_Filter:

- suppress warning with Namespaces
Note that using a own error-handler will still show notices, as isReadable itself will throw a notice

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@18424 44c647ce-9c0f-0410-b52a-842ac1e357ba
thomas hace 16 años
padre
commit
7874eceb82
Se han modificado 1 ficheros con 2 adiciones y 3 borrados
  1. 2 3
      library/Zend/Filter.php

+ 2 - 3
library/Zend/Filter.php

@@ -172,10 +172,9 @@ class Zend_Filter implements Zend_Filter_Interface
             $className = $namespace . '_' . ucfirst($classBaseName);
             if (!class_exists($className)) {
                 try {
-                    if (Zend_Loader_Autoloader::autoload($className)) {
+                    $file = str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php';
+                    if (Zend_Loader::isReadable($file)) {
                         Zend_Loader::loadClass($className);
-                    } else {
-                        continue;
                     }
                 } catch (Zend_Exception $ze) {
                     continue;