ZF2-81: E_STRICT error in Mvc\Bootstrap "Redefining already defined constructor for class Zend\Mvc\Bootstrap"
Description
(Zend\Mvc is not a valid component, according to the input box on this ticket form)
Strict standards: Redefining already defined constructor for class Zend\Mvc\Bootstrap in /www/fdev/Libraries/Zend/Mvc/Bootstrap.php on line 88.
Zend\Mvc\Bootstrap cannot implement interface Bootstrapper without throwing E_STRICT notice. The interface requires a method "bootstrap" which is the name of the constructor for the class "Bootstrap" (in addition to __construct() ) Thus, the error "redifining already defined constructor".
Fixing this will require renaming the class, or the interface method, Which implies updating the QuickStart guide as one of the two lines below will have to be updated to meet this fix. " $bootstrap = new Zend\Mvc\Bootstrap($moduleManager); $bootstrap->bootstrap($application); "
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2012-02-23T19:11:18.000+0000
Which version of PHP is raising this?
Posted by Evan Coury (evan.pro) on 2012-02-23T19:26:38.000+0000
This appears to have been fixed in 5.3.3 / 5.2.14.
https://bugs.php.net/bug.php?id=52160
Since we're targeting 5.3.3+ for ZF2, I'd say this is not an issue.
Source: http://www.php.net/ChangeLog-5.php
Posted by Evan Coury (evan.pro) on 2012-02-23T19:30:33.000+0000
This only affects versions of PHP below ZF2's target version (5.3.3).