Description

You can't disable the locale detection in Zend_Validate_Iban when using a Zend_Config (xml).

In xml you need to specify false with a zero.

Iban0

but because the validator checks also the type, you can't disable it.

if ($locale !== false) {
/* some code */
}

It works for me by changing the controle to (without type checking)

if ($locale != false) {
/* some code */
}

Comments

Posted by Thomas Weidner (thomas) on 2010-06-09T12:14:59.000+0000

and why don't you use "auto"?

Posted by Thomas Weidner (thomas) on 2010-06-09T12:26:33.000+0000

Fixed with r22401
Proposed change is problematic. Fixed it differently

Posted by Bert Van Hauwaert (becoded) on 2010-09-08T00:26:06.000+0000

Hello Thomas
Could you explain how I can configure the validator with xml?
From what I see, everything what I can think of just reads the locale out of the registry.
So if I use the config from my original post, I fall in the check