ZF-9770: redundant class name information within error messages

Issue Type: Bug Created: 2010-04-29T09:46:23.000+0000 Last Updated: 2010-11-20T09:27:19.000+0000 Status: Resolved Fix version(s): - 1.10.5 (26/May/10)

Reporter: Remy Damour (remy215) Assignee: Christian Albrecht (alab) Tags: - Zend_Form

Related issues: Attachments:


When Zend_Form throws an exception, it inserts twice the class name within error message.

see the following error message generated by Zend_Form:

{quote}Exception information:

Message: Zend_Form::Zend_Form::isValid expects an arrayencounters a problem, it {quote}

Class Zend_Form is displayed twice because of this code: {quote}throw new Zend_Form_Exception(CLASS . '::' . METHOD . ' expects an array');{quote}

Magic constants METHOD already contains 'CLASS::' therefore prepending it creates a duplicate class name.

Example: class A { public function b() { return METHOD; } }

$a = new A(); echo $a->b(); // output: A::b


Posted by Christian Albrecht (alab) on 2010-05-06T03:46:54.000+0000

Fixed in trunk r22126 and merged into 1.10 release branch.

Have you found an issue?

See the Overview section for more details.


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

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