|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-05-10 11:57 UTC] johannes@php.net
[2010-05-10 12:00 UTC] johannes@php.net
-Status: Open
+Status: Bogus
[2010-05-10 12:00 UTC] johannes@php.net
[2010-05-10 21:45 UTC] julian dot picht at gmail dot com
-PHP Version: 5.3.2
+PHP Version: 5.3.0+
[2010-05-10 21:45 UTC] julian dot picht at gmail dot com
[2010-05-10 21:48 UTC] rasmus@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 08:00:01 2025 UTC |
Description: ------------ "goto" encourages bad coding style and breaks existing code. There needs to be a php.ini-option to disable this "new feature". Test script: --------------- <?php /* broken as of php 5.3.2 */ class Zend_Controller_Action_Helper_Redirector extends Zend_Controller_Action_Helper_Abstract { [...] public function goto($action, $controller = null, $module = null, array $params = array()) { $this->setGoto($action, $controller, $module, $params); if ($this->getExit()) { $this->redirectAndExit(); } } [...] } Expected result: ---------------- should work as before 5.3.2 Actual result: -------------- 500 Internal Server Error in [...] Parse error: syntax error, unexpected T_GOTO, expecting T_STRING in /var/www/de.tv-stars/ZendFramework- 1.5.1/library/Zend/Controller/Action/Helper/Redirector.php on line 383