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

Validation class

This package is unmaintained.

Download latest release 0.8.6 (there is a newer Composer installable version)

License: New BSD

Description

Package to validate various datas. It includes :
- numbers (min/max, decimal or not)
- email (syntax, domain check, rfc822)
- string (predifined type alpha upper and/or lowercase, numeric,...)
- date (min, max, rfc822 compliant)
- uri (RFC2396)
- possibility valid multiple data with a single method call (::multiple)

Documentation

Manual

Maintainers

Dependencies

Required

Optional

Releases

Bugs

IDStatusTypeVersionDateSummary
#357ClosedBug2003-12-05Revised validate::url method
#901BogusBug2004-02-26PEAR QA: improvement for get_class()-usage
#956ClosedReq2004-03-06Validate::email() doesn't allow Internationalized Domain Names (IDN)
#997ClosedReq2004-03-11validate:date minium and maximum accept Date objects
#1720BogusBug2004-06-25Validate::uri: any alphanumeric string is a valid uri
#1761ClosedReq2004-07-01new Methods in validate_US.php
#1799BogusBug2004-07-05is_numeric not trim strings
#2194ClosedReq2004-08-22Incomplete credit card number validation
#2195BogusBug2004-08-22Validate doesn't work on PHP installation without PCRE functions
#2200ClosedReq2004-08-23Discrepency in method names and additional methods
#2337BogusBug2004-09-15Validate::uri doesn't work
#2578BogusBug2004-10-20Validate:uri() fails on "double protocol" and missing tlds
#2662ClosedBug2004-11-01Invalid email addresses are validated
#2879ClosedBug2004-12-03Issn wrong validation
#2936ClosedBug2004-12-09Typo in sample_multiple.php
#3125ClosedBug2005-01-06inval() breaks Validation zero-padded SSN
#4055ClosedReq2005-04-04Patch for Validate::multiple() and CreditCard::number()
#4068ClosedBug2005-04-05errant "return true;" in Validate_US::phoneNumber
#4246BogusReq2005-04-29Validate::uri doesn't check url
#4587ClosedBug2005-06-14The sample_multiple.php file is out of date
#4663Wont fixReq2005-06-23Return/pass reason for failure to validate
#4845ClosedBug2005-07-16uri method always returns true
#4991Wont fixReq2005-08-03Roman numeral validation
#5390ClosedBug2005-09-13XML Package Error
#5577Wont fixReq2005-10-01Allow date input as an array
#5582BogusBug2005-10-02second parameter in string should have a default
#5804ClosedBug2005-10-28"-" is valid in domain extension
#5993BogusReq2005-11-17validate persian or Arabic strings in UTF-8
#6129BogusBug2005-12-02Incorrect time validation
#6130Wont fixReq2005-12-02Use PEAR::raiseError instead of trigger_error
#6181ClosedBug2005-12-07Validate::uri marks valid uri as invalid
#6461ClosedBug2006-01-11Validate::URI doesn't appear to validate URNs correctly.
#6930ClosedBug0.6.22006-02-24Email validation via ::multiple always checks domain
#7011ClosedReq0.6.22006-03-03VALIDATE_STREET pattern does not permit '.'
#7038ClosedBug0.6.22006-03-06names with umlauts accidently declared valid
#7176ClosedBug0.6.22006-03-21Validate::email doesn't allow some proper RFC 822 addresses
#7317BogusBug2006-04-05function_exists('checkdnsrr') allways return false
#7531ClosedBug0.6.32006-05-01Email-checks need to be more RFC-compliant
#7648ClosedBug0.6.32006-05-17VALIDATE_EALPHA does not include the Å character
#7864ClosedBug0.6.32006-06-11uris rejected if subdomain contains underscores
#8073ClosedReq0.6.32006-06-29a@a is valid email
#8166BogusBug0.6.32006-07-08Validate::uri() fails on URL with trailing /
#8442ClosedBug0.6.42006-08-15Undefined variable "return"
#8629ClosedBug0.6.42006-09-04eMail validation fails
#8768ClosedBug0.6.42006-09-22Valid URL's are marked invalid
#8839ClosedBugCVS2006-10-03defect
#8851ClosedBug0.6.42006-10-04date-validation allows letters in time.
#8853ClosedBug0.6.42006-10-04E-Mail validation allows space before TLD
#9156ClosedBug0.6.52006-10-24Missing characters in validation sequence
#9385ClosedBug0.7.02006-11-19Missing characters in validation sequence
#9386ClosedBug0.7.02006-11-19Missing punctuation mark (hyphen) in VALIDATE_NAME
#9985DuplicateBug0.7.02007-01-31Can't validate URI that end with a '/'
#10044ClosedBugCVS2007-02-07email validation bug
#10167ClosedBugCVS2007-02-23ISSN/ISBN validation is broken by _checkControlNumber
#10844ClosedBug0.7.02007-04-26Validate::multiple() breaks by consolidating single field array
#11001ClosedBug0.7.02007-05-10RFC822 Comments break PCRE
#11073ClosedBug0.7.02007-05-18date() %d validates \d{1,2} as correct
#11203BogusBug0.7.02007-06-01email with slash are returned as valid by Validate::email
#11244ClosedDoc0.7.02007-06-06documentation
#11592ClosedBug0.7.02007-07-12Email validation not working properly
#12452ClosedBug0.7.02007-11-15EALPHA_LOWER is missing a ß
#12658ClosedBug0.8.02007-12-11New lines at end of file create output
#13512BogusBug0.8.12008-03-27URI with slash / in queryparam is seen as invalid
#13825AssignedBug0.8.12008-05-02Email validation not working for '&'
#14046ClosedDoc0.8.12008-06-02Docs desperately needed
#14075ClosedBug0.8.12008-06-04Validate::uri() rejects valid tag: URIs
#14180ClosedDoc0.8.12008-06-18Typo in $modulo variable description
#14214BogusBug0.8.12008-06-23Validates URL even when query string starts with an ampersand
#14377BogusReqCVS2008-07-21Improve PHPCS results
#14567Wont fixReq0.8.12008-08-26Check string for minimum number of certain character type
#14571Wont fixReq0.8.12008-08-26Validation with UTF-8
#14791ClosedReqCVS2008-10-14Improve PHPCS Results
#14865ClosedBugCVS2008-10-25Unit test failure: email.phpt (Net_IDNA?)
#14866ClosedBugCVS2008-10-25Notice: Undefined index: VALIDATE_ITLD_EMAILS
#14931ClosedBugCVS2008-10-31Warning: max(): Array must contain atleast one element
#15836Wont fixReqCVS2009-01-30Add VALIDATE_ZIP_CODE and VALIDATE_PHONE
#15942ClosedBug0.8.22009-02-25Problem with PEAR Validate
#15945ClosedBug0.8.22009-02-25improper string used to check domain dns
#16109BogusBug0.8.22009-04-16email validates with one trailing newline character
#16316BogusBug0.8.22009-06-10URIs with spaces in domain return valid
#16381ClosedBug0.8.22009-06-26string format validation fails for VALIDATE_NAME.VALIDATE_XXX
#16427ClosedBug0.8.22009-07-11Email Validation not working for check_domain
#16489ClosedReqUnknown2009-08-03Validate should use mb_strlen
#16700BogusBugCVS2009-10-14Invalid characters allowed in RFC822 validation
#16811ClosedBug0.8.22009-11-20should determine whether Net/IDNA.php is available less "destructively"
#16897OpenBug0.8.32009-12-10Validate fractional numbers less than 1
#17043OpenBug0.8.32010-01-29openbase_dir and new includePathFileExists method causes warings
#17279ClosedBugSVN2010-03-30Validate::email() with 'fullTLDValidation' => 'true' always return false.
#17302Wont fixBug0.8.32010-04-09Regular expression "Compilation failed: unrecognized character after (? at ..."
#17555ClosedBug0.8.32010-07-02| or /
#17755ClosedBugSVN2010-08-19Encoding to UTF-8 in Validate.php
#17756ClosedBugSVN2010-08-19Avoiding ereg
#17947ClosedBug0.8.42010-10-11testdate test fails if date.timezone not set
#17948ClosedBug0.8.42010-10-11multicard test fails
#17963ClosedReq0.8.42010-10-16Allow test suite to run without DNS resolver
#17975OpenBug0.8.42010-10-19Validate E_STRICT incompatibility
#18408ClosedReqSVN2011-03-30raise min required PHP version to 5.1.0
#19132OpenBug0.8.42011-12-13VALIDATE_EALPHA_UPPER/LOWER Turkish accents are wrong
#19143BogusBug0.8.52011-12-18user@yahoo..com reported as a valid email address
#19439ClosedDoc0.8.52012-05-28Package description improvement
#19440FeedbackBug0.8.52012-05-28Outdated top level domains list
#19630OpenBug0.8.52012-10-03Validate::string returns true for "max_length"=>0 when it shouldn't.
#29034OpenBug0.8.62025-04-18Non-static method Validate::_modf() cannot be called statically