"CJoinElement::applyLazyCondition()" and "CActiveRecordTest" have been updated to match PHP 5.2.