Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBAN Validierung erkennt keine korrekten IBANs #2

Open
connine opened this issue Feb 18, 2016 · 2 comments
Open

IBAN Validierung erkennt keine korrekten IBANs #2

connine opened this issue Feb 18, 2016 · 2 comments
Assignees

Comments

@connine
Copy link

connine commented Feb 18, 2016

Habe gerade die Validierung mit meiner eigenen IBAN getestet und diese wurde nicht korrekt erkannt.

Der Fehler scheint an dieser Funktion zu liegen: https://github.com/grusch-it/isotope_payment_sepa/blob/master/classes/SepaValidator.php#L276

Warum wird nicht einfach nur bcmod() verwendet?

@grusch-it
Copy link
Owner

Dem lag die (falsche) Annahme zugrunde, dass bcmod nicht mit den großen Zahlen zurecht kommt.

Dennoch sollte die separate Implementierung auf die selben Ergebnisse wie die native Funktion kommen und daher eine korrekte IBAN auch als korrekt erkannt werden. Bitte mit der neuen Version 2.0.5 noch einmal versuchen und hier ein kurzes Feedback geben.

@grusch-it grusch-it self-assigned this Feb 19, 2016
@connine
Copy link
Author

connine commented Feb 19, 2016

Ich habs noch nicht getestet sondern nur mal schnell einen Blick in den Code geworfen. Du arbeitest noch mit integer 97 aber bcmod erwartet auch modulus als string

string bcmod ( string $left_operand , string $modulus )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants