Issues

ZF-8366: Zend_Auth_Result is not expandable

Issue Type: Improvement Created: 2009-11-21T06:23:36.000+0000 Last Updated: 2012-05-29T13:47:20.000+0000 Status: Open Fix version(s): Reporter: Barry O'Donovan (barryo) Assignee: Ralph Schindler (ralph) Tags: - Zend_Auth

Related issues: - ZF-11338

Attachments:

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

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts