[CentOS] L9 - what is true?

Wed Oct 19 12:01:59 UTC 2011
Jussi Hirvi <listmember at greenspot.fi>

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