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

Bug #7607 Validate_ISPN::isbn doesn't work with ISBN13
Submitted: 2006-05-11 20:45 UTC
From: pascal at zyzomys dot com Assigned: makler
Status: Closed Package: Validate_ISPN (version 0.6.0)
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 21 + 11 = ?

 
 [2006-05-11 20:45 UTC] pascal at zyzomys dot com (Pascal Hubrecht)
Description: ------------ Validate_ISPN::isbn() doesn't work with isbn13 numbers Test script: --------------- $noYes = array('NO', 'YES'); $isbn13 = '978-1-873671-00-9'; echo $noYes[Validate_ISPN::isbn($isbn13)]; /* To resolve this bug, just remove lines 69 to 71 from file ISPN.php */ Expected result: ---------------- expected result is YES Actual result: -------------- actual result is NO

Comments

 [2006-08-17 19:21 UTC] makler at php dot net (Piotr Klaban)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.