Reply to Sergey,
Tue, 31 Mar 2009 16:29:30 +0200, Qian Xu wrote:assert(null == "", "null is empty"); // No segfaultWhen you compare null to an array, null is first converted into an empty array, then a comparison takes place. This happens because arguments to comparison operator are first converted to a common type.
FWIW while that may be logically correct, I don't think that's how it actually gets implemented.
