Re: Validate package

From: Date: Sat, 06 Nov 2004 14:24:40 +0000
Subject: Re: Validate package
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-34233@lists.php.net to get a copy of this message
On Fri, 05 Nov 2004 18:57:45 -0500 davey@php.net (Davey) wrote: > What if Validate.php included all the code into it that it > currently has? > > So if you do require_once 'Validate.php'; you would get all the > functions that were there before. > > But if you only want to validate e-mail you could do require_once > 'Validate/Email.php'; And if you like to valide more you will include many files, it's good and fast enough to keep "common" functions in Validate.php and do not split them in many files. ISSN, sscc and some other should move out of Validate, as they are certainly required by most of our users. > It would break BC though, so moot point. This shoulda been thought > of from the start ;) Alpha state, we do not mind :) --Pierre

« previous php.pear.dev (#34233) next »