Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.4.0

Bug #20041 Declaration "static" missing
Submitted: 2013-08-15 17:09 UTC
From: romanf Assigned:
Status: Open Package: Image_Canvas (version 0.3.5)
PHP Version: 5.4.3 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2013-08-15 17:09 UTC] romanf (Roman Fischer)
Description: ------------ According to http://php.net/manual/en/language.oop5.static.php functions that are used statically (as in $Canvas =& Image_Canvas::factory(...)) must be declared with the keyword "static": now: function &factory($canvas, $params) {...} should be: static function &factory($canvas, $params) {...} Yes, the warning can be supressed by setting the error-level to ini_set("error_reporting", "E_ALL & ~E_STRICT"); but that can only be a temporary workaround... Kind regards Roman

Comments