Comments (3)
According to the calculator that is provided by the Czech National Bank, the first IBAN is valid while the second one is invalid because of a wrong account number.
from php-iban.
First account CZ0401000000000000000000
looks OK, but account number is empty, IBAN can not be reconstruct back.
from php-iban.
Without further investigation, only judging from the screenshot, it looks like that national bank checking interface has been implemented such that a special case input of all zeroes for the account number should be considered invalid.
This is not an IBAN (international) limitation, therefore expecting verify_iban()
to catch it is not logical.
If you can find an official statement that all zeroes is disallowed from the Czech authorities, then we could perhaps add it to the national check for CZ. However, in terms of adding this special case, currently for countries we only implement iban_verify_nationalchecksum()
. This is done by defining a function _iban_nationalchecksum_implementation_cz
. However, I do not like the semantic impact (readability / confusion) of adding a special case exclusion to such a function.
Therefore I think this particular case, even if the special case is considered invalid by Czech authorities, they are a little bit strange for adding special cases, and we should safely consider this to be odd and out of scope for verify_iban()
.
from php-iban.
Related Issues (20)
- Breaking namespace issue HOT 2
- IBAN secret or not HOT 1
- Strangeness on registry.txt in Timor-Leste HOT 3
- 2.8.x is not compatible HOT 12
- Version 3.0 mentioned in README.md but 2.8.0 is the last one available via composer (at the packageist.org) HOT 7
- compatible with php 7.4 HOT 2
- Missing dot for version 3.0.3 (released as 3.03) HOT 2
- docs/COMEDY-OF-ERRORS: IBAN registry moved again HOT 2
- How to use php-iban?
- PHP 7.4 - Exception message: Warning: array_key_exists() expects parameter 2 to be array HOT 1
- Check for EU/EFTA/Other Countries HOT 2
- Does it really generate IBAN? HOT 1
- Add PHP 8.0 support
- Irland IBAN not working correctly HOT 3
- PHP 8.2 compatibility HOT 1
- bban_bankid_start_offset & bban_bankid_stop_offset for GB & MT ibans not correct HOT 6
- IBAN validation fails incorrectly HOT 1
- PHP array registry would be more efficient HOT 4
- Add a method to obfuscate IBAN for presentation for relative identification HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-iban.