require_once 'Zend/Loader/Autoloader.php';
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->suppressNotFoundWarnings(true);
I just set it to suppress the not found warning generated from the auto
loader so it would proceed to trying the Zend_Validate_* namespace.
It's relatively strange that it hasn't caused more people problems :)
Yi
On 2/14/10 11:01 PM, David Muir wrote:
> Tried replying this a while back, but didn't get through...
> Anyway, here's my message reposted:
>
> Ran into it yesterday. I've reported the bug here:
> http://framework.zend.com/issues/browse/ZF-9142
>
> To fix, go to line 200 in Zend_Validate.php and replace:
> if (!class_exists($className)) {
> with
> if (!class_exists($className, false)) {
>
> This prevents class_exists from triggering the autoloader.
>
> 1.10 tries to load the class basename before trying any namespaces, while
> previous versions would only try it namespaced. If you hadn't added any
> namespaces, then it would only try the Zend_Validate namespace and find the
> file. Otherwise it also would have failed to include the file.
>
> Cheers,
> David
>
>
没有评论:
发表评论