PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Validate » Validate_ISPN » Bug #7607

Validate_ISPN::isbn doesn't work with ISBN13

Details

Submitted2006-05-11 20:45 UTC
Frompascal at zyzomys dot com
Assignedmakler
StatusClosed
PackageValidate_ISPN
PHP VersionIrrelevant
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.