2010年2月14日星期日

[fw-mvc] Re: Zend_Validate error after upgrading to Zend Framework 1.10.1

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

--
View this message in context: http://n4.nabble.com/Zend-Validate-error-after-upgrading-to-Zend-Framework-1-10-1-tp1476673p1555783.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: