Zend Compatibility: substr_compare should raise warnings when offset and length parameters are invalid.