This code: boolean(null); ', '; boolean(string); ', '; boolean(integer);', '; boolean(array); ', '; boolean(map); ', '; gives: false, false, false, true, true This is different from L8. Is this intentional? If so, why? This has consequences which I think are counterintuitive: if(array(1) -> find('whatever')); This evaluates as true. - Jussi
Uh, again I posted on the wrong list - sorry! - Jussi -------- Original Message -------- Subject: L9 - what is true? Date: Wed, 19 Oct 2011 15:01:59 +0300 From: Jussi Hirvi <listmember at greenspot.fi> To: CentOS mailing list <centos at centos.org> This code: boolean(null); ', '; boolean(string); ', '; boolean(integer);', '; boolean(array); ', '; boolean(map); ', ';