zf2 — pull request #4452 by weierophinney (2013-05-09 17:06:08+00:00)
Title: Zend\Authentication\Result custom result codes not possible

What's the point of this in the Result constructor:

if ($code < self::FAILURE_UNCATEGORIZED) {
$code = self::FAILURE;
} elseif ($code > self::SUCCESS ) {
$code = 1;
}

It pretty much nullifies the usefulness of any classes that extend result using custom codes without making a custom constructor, and seems to be there for no discernible reason.