You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
__[Version 2.4.13](https://github.com/globalcitizen/php-iban/releases/tag/v2.4.13)__ has been released.
297
+
* This release is mostly about bugfixes, after spending a lot of time gathering IBANs online and using them for further testing.
298
+
* Tunisia (TN) national checksum support has been removed, after additional testing with IBAN gathered from the internet it was found not to be correct. Perils of reverse-engineering!
299
+
* A couple of other bugfixes:
300
+
* The function `iban_mistranscription_suggestions()` now behaves correctly when passed loosely formatted IBAN-like strings
301
+
* The checksum algorithm `_verhoeff()` which supports certain national checksum implementations now behaves correctly when passed invalid input
302
+
296
303
__[Version 2.4.12](https://github.com/globalcitizen/php-iban/releases/tag/v2.4.12)__ has been released.
297
304
* Tunisia (TN) national checksum support has been added.
@@ -601,27 +604,6 @@ function _iban_nationalchecksum_set($iban,$nationalchecksum) {
601
604
return$fixed_iban;
602
605
}
603
606
604
-
# Internal proxy function to access national checksum implementations
605
-
# $iban = IBAN to work with (length and country must be valid, IBAN checksum and national checksum may be incorrect)
606
-
# $mode = 'find', 'set', or 'verify'
607
-
# - In 'find' mode, the correct national checksum for $iban is returned.
608
-
# - In 'set' mode, a (possibly) modified version of $iban with the national checksum corrected is returned.
609
-
# - In 'verify' mode, the checksum within $iban is compared to correctly calculated value, and true or false is returned.
610
-
# If a national checksum algorithm does not exist or remains unimplemented for this country, or the supplied $iban or $mode is invalid, '' is returned.
611
-
# (NOTE: We cannot collapse 'verify' mode and implement here via simple string comparison between 'find' mode output and the nationalchecksum part,
612
-
# because some countries have systems which do not map to this approach, for example the Netherlands has no checksum part yet an algorithm exists)
# Internal proxy function to access national checksum implementations
1172
+
# $iban = IBAN to work with (length and country must be valid, IBAN checksum and national checksum may be incorrect)
1173
+
# $mode = 'find', 'set', or 'verify'
1174
+
# - In 'find' mode, the correct national checksum for $iban is returned.
1175
+
# - In 'set' mode, a (possibly) modified version of $iban with the national checksum corrected is returned.
1176
+
# - In 'verify' mode, the checksum within $iban is compared to correctly calculated value, and true or false is returned.
1177
+
# If a national checksum algorithm does not exist or remains unimplemented for this country, or the supplied $iban or $mode is invalid, '' is returned.
1178
+
# (NOTE: We cannot collapse 'verify' mode and implement here via simple string comparison between 'find' mode output and the nationalchecksum part,
1179
+
# because some countries have systems which do not map to this approach, for example the Netherlands has no checksum part yet an algorithm exists)
0 commit comments