ZF-8366: Zend_Auth_Result is not expandable
Description
The constructor for Zend_Auth_Result contains:
if ($code < self::FAILURE_UNCATEGORIZED) {
$code = self::FAILURE;
} ...
where:
const FAILURE_UNCATEGORIZED = -4;
This makes it impossible to create subclasses of this with custom results while still using the parent constructor for future proofing as any result with a lesser value for $code will have it reset to -4.
Suggested fix would be to make FAILURE_UNCATEGORIZED arbitrarily low - such as -9999.
Comments
No comments to display