Issues

ZF-3022: Zend_Controller_Action_Helper_Redirector goto() PHP5.3 unexpected T_GOTO

Description

I know PHP5.3 hasn't even entered RC stage, but I wanted to start using late static binding.

Certain keywords have been added to PHP5.3, for example goto.

Zend_Controller_Action_Helper_Redirector uses goto as a method name and so causes a parse error "Parse error: syntax error, unexpected T_GOTO, expecting T_STRING"

Comments

I've attached a proposed patch to fix the problem.

It would still support backwards compatibility by using __call to catch any calls to the goto method, and then calls the new method gotoAction.

Please evaluate and categorize/assign as necessary.

Scheduling for next mini-release and assigning to Ralph.

Fixed in trunk in r 9838; merge commited to 1.5 release branch in 9839.

Updating for the 1.6.0 release.