Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10326 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47764 invoked by uid 1010); 8 Jun 2004 17:59:40 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 47740 invoked by uid 1007); 8 Jun 2004 17:59:39 -0000 Message-ID: <20040608175939.47739.qmail@pb1.pair.com> To: internals@lists.php.net Date: Tue, 8 Jun 2004 20:07:22 +0200 Lines: 12 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.0 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.132 X-Posted-By: 153.19.215.13 Subject: 'false' - boolean interpratation From: rashid@ds.pg.gda.pl ("Robert Janeczek") is there any way that string 'false' (and its variations with capital letters) could be interpeted as boolean of value false? i have xml configuration file that has some switches (true/false) in it. when i use this values in functions that require booleans i get true every time (as string isn`t empty) :/ i hoped that at least with explicit type cast i could go around this problem, but i didn`t help. how about adding this special case to conversion rules? creating if`s around such code doesn`t make me happy at all :] rash