Re: [pear-webmaster] Re: [PEAR-CORE] cvs: pearweb /public_html account-edit.php /sql users.sql

From: Date: Tue, 25 Oct 2005 12:29:43 +0000
Subject: Re: [pear-webmaster] Re: [PEAR-CORE] cvs: pearweb /public_html account-edit.php /sql users.sql
References: 1 2 3 4  Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-4568@lists.php.net to get a copy of this message
On Tue, 25 Oct 2005 13:52:32 +0200, Martin Jansen wrote: > On Tue Oct 25, 2005 at 11:4644AM +0000, Helgi Þormar wrote: >> On Tue, 25 Oct 2005 12:39:51 +0200, Martin Jansen wrote: >> >> > On Tue Oct 25, 2005 at 01:1301AM -0000, Helgi Þormar Þorbjörnsson wrote: >> >> + if ($k == 'userinfo' && strlen($user_data_post[$k]) >> >> > '255') { >> > >> > The return value of strlen() is int, not string. >> >> And since when was PHP a strict type language? This works perfectly. > > Just because something works does not imply that it is also correct. Now you are just trying to be a ego maniac/way to picky, really ... in a loose type language if it works either as a string or an integer then it means that both ways are correct, because the language is smart enough to deal with either scenario, but ohh well, since you have already changed it then I guess it doesn't matter. - Helgi

« previous php.pear.webmaster (#4568) next »