PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Validate » Validate_Finance » Bug #8796

bug in getBankaccount()

Details

Submitted2006-09-27 00:17 UTC
Fromhfmanson at home dot nl
Assignedcweiske
StatusClosed
PackageValidate_Finance
PHP Version4.3.4
OSWindows 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