Re: Validate_be

From: Date: Sun, 26 Nov 2006 18:32:12 +0000
Subject: Re: Validate_be
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-45031@lists.php.net to get a copy of this message
Amir Mohammad Saied a écrit : > Hi, > > Well, as Arnaud has told already, that's not a good practice for a Lib > that's supposed to do validating stuff, it's up to developer to pass > the arguments trimmed or not. > Be care, my English was perhaps erroneous. The method don't "change" value" but validate as right a right value with trailing space (if the trim result is valid ;-) But I would remove it. I see alos that my phone validation is wrong. I need to change it before go to a beta or rc state > -- Amir Mohammad > > On Fri, 24 Nov 2006 06:22:18 +0100 > moosh.be@gmail.com (Christophe Gesché) wrote: > > >> I can now restart development Validate BE. >> >> I see that I trim values before try to validate. >> >> But I'm not sure that's a good idea. >> >> If the value contain trainling space, developper can decide if it's good >> or not. an trim it self if needed. >> >> no ? >> >> -- Moosh -- claroline.net -- php.net === Php & Pear & MySQL === >> http://moosh.et.son.brol.be/ (fr) 11-2006 Forum PHP >> http://www.afup.org/ >> (fr) 02-2007 FOSDEM 07 http://www.fosdem.org/ (en) >> > > -- Moosh -- claroline.net -- php.net === Php & Pear & MySQL === http://moosh.et.son.brol.be/ (fr) 11-2006 Forum PHP http://www.afup.org/ (fr) 02-2007 FOSDEM 07 http://www.fosdem.org/ (en)

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