Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21233 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23812 invoked by uid 1010); 15 Dec 2005 15:03:09 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 23797 invoked from network); 15 Dec 2005 15:03:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Dec 2005 15:03:09 -0000 X-Host-Fingerprint: 194.109.253.196 mediawave.xs4all.nl Linux 2.5 (sometimes 2.4) (4) Received: from ([194.109.253.196:39559] helo=mediawave.nl) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 8F/FF-23096-CA581A34 for ; Thu, 15 Dec 2005 10:03:08 -0500 Received: from mediawave.nl (mediawave.nl [127.0.0.1]) by mediawave.nl (8.13.4/8.13.4) with ESMTP id jBFF34GP011119 for ; Thu, 15 Dec 2005 16:03:04 +0100 Received: (from apache@localhost) by mediawave.nl (8.13.4/8.13.4/Submit) id jBFF33Qd011118; Thu, 15 Dec 2005 16:03:03 +0100 X-Authentication-Warning: mediawave.nl: apache set sender to bart@mediawave.nl using -f Received: from 137.224.252.10 (SquirrelMail authenticated user bart) by www.mediawave.nl with HTTP; Thu, 15 Dec 2005 16:03:03 +0100 (CET) Message-ID: <15063.137.224.252.10.1134658983.squirrel@www.mediawave.nl> Date: Thu, 15 Dec 2005 16:03:03 +0100 (CET) To: internals@lists.php.net User-Agent: SquirrelMail/1.4.6 [CVS]-0.cvs20050812.1.fc4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: Re: why is '01' == '1.'? From: bart@mediawave.nl ("Bart de Boer") Don't forget that one fundamental aspect of PHP is, that it's a web language and thus receives most of its input from the web. Therefore it usually only gets strings as input. Consider ($_POST['intfield1'] == $_POST['intfield2']) Both variables would be strings. Still if someone would input '01' and '1.' you'd want this expression to return true.