Home » Validate » Validate_Finance » Bug #8796
bug in getBankaccount()
Details
| Submitted | 2006-09-27 00:17 UTC |
|---|---|
| From | hfmanson at home dot nl |
| Assigned | cweiske |
| Status | Closed |
| Package | Validate_Finance |
| PHP Version | 4.3.4 |
| OS | Windows XP |
| Roadmaps | (Not assigned) |
Comments
[2006-09-27 00:17 UTC] hfmanson at home dot nl
Description:
------------
line 531 should be
$currCountrycodeBankaccount = $_iban_countrycode_bankaccount[ substr($this->_iban,0,2) ];
instead of
$currCountrycodeBankaccount = $_iban_countrycode_bankaccount[ substr($iban,0,2) ];
Test script:
---------------
<?
require_once('Validate/Finance/IBAN.php');
$iban = 'NL61ABNA0400587637';
//$iban = 'BE62510007547061';
//$iban = 'FR1420041010050500013M02606';
$ibanobj = new Validate_Finance_IBAN($iban);
echo '<title>IBAN test</title>';
echo '<pre>';
echo $iban . "\n";
echo $ibanobj->getBankaccount() . "\n";
echo '</pre>';
?>
Expected result:
----------------
the bank account
Actual result:
--------------
empty string