Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.5.2

Request #18913 ssn is outdated
Submitted: 2011-10-18 15:22 UTC
From: borrel Assigned:
Status: Open Package: Validate_NL (version SVN)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2011-10-18 15:22 UTC] borrel (Michel Kollenhoven)
Description: ------------ ssn in NL is now DSN(Burger Service Nummer) also there IS a verification for this its a variant on the 11-test(11-proef) if the numer is stored like ABCDEFGHI, then (9 x A) + (8 x B) + (7 x C) + (6 x D) + (5 x E) + (4 x F) + (3 x G) + (2 x H) + (-1 x I) % 11 === 0 also the number can have 8 chars(old numbers) btw if a bank-acc-number is shorter as 8 it a 'giro- numer' and cannot be checkd with this algorithem Test script: --------------- $val = new Validate_NL; echo ($val->ssn('123456789') == false);//should fail echo ($val->ssn('111222333') == true);//should not fail echo ($val->ssn('123456782') == true);//should not fail Expected result: ---------------- do a good check that its a valid ssn/bsn/sofi Actual result: -------------- only the length and chars are tested, so 123456789 sould fail but dous not

Comments

 [2011-10-31 17:34 UTC] doconnor (Daniel O'Connor)
Thanks for letting us know. Unfortunately; this package is unmaintained - and given the fact it's a domain specific package; you are probably more qualified than us in PEAR QA to fix it. If you are able to; a patch would be great - it doesn't have to be perfect by any means.