You may want to try suppressing the warnings: $autoloader = Zend_Loader_Autoloader::getInstance(); $autoloader->supressNotFoundWarnings(true);
-- Hector On Tue, Aug 4, 2009 at 9:01 AM, Luiz Vitor <[email protected]> wrote: > I apologize for sending this message again, but does anyone know how to > solve this issue? > > > ---------- Forwarded message ---------- > From: Luiz Vitor <[email protected]> > Date: Mon, Aug 3, 2009 at 10:55 AM > Subject: Validate and Filter - default namespaces raising warnings > To: [email protected] > > > Hi all > > I´m having issues using the default namespaces feature for Zend_Validate > and Zend_Filter (ZF 1.9). Actually it´s the same problem as reported in > another topic: > > http://www.nabble.com/Autoloader-and-Zend_Validate-Zend_Filter-namespaces-td23538428.html > > Basically a warning is raised when Validate or Filter try to load a class > that does not exists in the first namespaces. > > Here´s the code: > > Zend_Validate::setDefaultNamespaces(array('Vilage_Validate')); > Zend_Debug::dump(Zend_Validate::is('1234', 'Digits')); > > ( ! ) Warning: Zend_Loader::include(Vilage/Validate/Digits.php) [ > zend-loader.include<http://dev.vilagenet.com.br/tests/zend-loader.include>]: > failed to open stream: No such file or directory in /data/html/ > vilagenet.com.br/library/Zend/Loader.php on line *83* > > ( ! ) Warning: Zend_Loader::include() > [function.include<http://dev.vilagenet.com.br/tests/function.include>]: > Failed opening 'Vilage/Validate/Digits.php' for inclusion > (include_path='.:/data/html/ > www.vilagenet.com.br/library:/data/html/www.vilagenet.com.br/application/models:/data/html/www.vilagenet.com.br/application/tables:/usr/share/php') > in /data/html/vilagenet.com.br/library/Zend/Loader.php on line *83* > > boolean true > > For now I have to extend and subclass Zend_Validate and Zend_Filter > implementing custom ::is() and ::filterStatic() for this to work. > > Is this an error or something I´m doing wrong? Should I file this in the > issue tracker? > > Thanks in advance. > >
