Home » Validate » Validate_ISPN » Bug #7607
Validate_ISPN::isbn doesn't work with ISBN13
Details
| Submitted | 2006-05-11 20:45 UTC |
|---|---|
| From | pascal at zyzomys dot com |
| Assigned | makler |
| Status | Closed |
| Package | Validate_ISPN |
| PHP Version | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2006-05-11 20:45 UTC] pascal at zyzomys dot com
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
[2006-08-17 19:21 UTC] makler at php dot net
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.