ZF-8662: Zend_Validate_Barcode returns bad informations

Issue Type: Bug Created: 2009-12-29T14:34:20.000+0000 Last Updated: 2009-12-31T03:43:44.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Mickael Perraud (mikaelkael) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate

Related issues: Attachments:


When validating '123456789' with Itf14 validator: we receive "'123456789' should be 9 characters" instead of "'123456789' should be 14 characters"

In Zend_Validate_Barcode, line 193:

<pre class="highlight">
$this->_length = strlen($value);
$adapter = $this->getAdapter();

should be replace by

<pre class="highlight">
$adapter = $this->getAdapter();
$this->_length = $adapter->getLength();


Posted by Thomas Weidner (thomas) on 2009-12-31T03:43:42.000+0000

Already fixed with r19974

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.