ZF-9601: Zend_Validate_Barcode make call of the method Zend_Validate_Abstract:>_setValue($value)
Description
current code line 192 in file, Zend/Validate/Barcode.php
$this->_value = (string) $value;
Change to
$this->_setValue($value);
current code line 192 in file, Zend/Validate/Barcode.php
$this->_value = (string) $value;
Change to
$this->_setValue($value);
Comments
Posted by Thomas Weidner (thomas) on 2010-04-02T23:59:03.000+0000
What's the benefit/improvement of deleting (string)? Could be a problem in my eyes when the given value is no string.
Posted by Thomas Weidner (thomas) on 2010-04-03T03:30:42.000+0000
Changed with r21748
Posted by Ramon Henrique Ornelas (ramon) on 2010-04-03T03:35:06.000+0000
@Thomas I agree it would be a problem, but before of the assignment is made a validate of the type of given passed.
line 187 the 190 in, Zend/Validate/Barcode.php
Posted by Ramon Henrique Ornelas (ramon) on 2010-04-03T03:38:20.000+0000
@Thomas Thanks, Disregard my comment above.