Oh THANK GOD! The Zend Loader is the most illconceived piece of code I've seen come out of a major company.
Here's a link to a discussion between a user and a Zend engineer about that subject. I ran into the very same problem. Basically all error messages from loaded classes were suppressed, because the geniuses from Zend put some @ characters before the central include statements. Needless to say it was impossible to debug anything with only whitescreens telling you that something is wrong. When I removed the @, I got my error messages, but the regular loading process would throw warnings for no apparent reason. Here's the Zend engineers response to that issue: "This is fine, normal, and expected. Within Zend_Loader::isReadable(), we use fopen() with its third parameter to allow searching the include_path; this is many, many times faster than manually looping over paths. However, fopen() emits a warning when it is unable to find a file. We suppress this warning from display with the '@' operator, but if you are using the PHP error_log, it will still get logged. So, basically... all is working as expected. Nothing to see here, move along... " So, thanks.. oh, your initial concept turned out too slow, so you quick fix it instead of rethinking it? Oh, people call you on it, so you tell them to go away? To me the symfony autoloader is brilliant and fast. How does a company like Zend not come up with something similar, at least as an alternative to a crappy loader. Ah well, just venting since I spent hours hunting down the problem ;) Daniel On May 1, 8:00 pm, Pablo Godel <pgo...@gmail.com> wrote: > If you are using Zend_Loader::autoload() to use Zend Framework > components within Symfony, you have to know that it has been > deprecated and will get removed in version 2.0.0 > > Here it was posted how it should be replaced if you upgrade to Zend > Framework 1.8.0: > > http://tinyurl.com/cmveuq > > Hopefully the symfony manual page gets updated. > > Pablo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---