PEAR Bug Search Results
http://pear.php.net/bugs/search.php?cmd=display&package_name%5B0%5D=HTML_Template_Sigma
Search Resultsen-uspear-webmaster@lists.php.netpear-webmaster@lists.php.nethourly12000年01月01日T12:00+00:00PEAR Bugshttp://pear.php.net/gifs/pearsmall.gif
http://pear.php.net/bugs
HTML_Template_Sigma: Feature/Change Request 23751 [Open] Provide valid constructor for HTML_Template_Sigma
http://pear.php.net/bugs/23751
HTML_Template_Sigma Feature/Change Request
Reported by wevrem
2018年05月21日T21:08:54+00:00
PHP: Irrelevant OS: Ubuntu18.04 Package Version: 1.3.0
Description:
------------
I'm running PHP7.2 and it complains that HTML_Template_Sigma is
using a method with the same name as the class, rather than a
bona fide constructor, `__constructor`. Can we change that?
Test script:
---------------
class Template extends \HTML_Template_Sigma {
function __construct($tfile, $tdir, $cdir=null) {
parent::__construct($tdir, $cdir);
$this->loadTemplateFile($tfile);
}
}
Expected result:
----------------
No warning or error expected
Actual result:
--------------
PHP Deprecated: Methods with the same name as their class will
not be constructors in a future version of PHP;
HTML_Template_Sigma has a deprecated constructor in
/usr/share/php/HTML/Template/Sigma.php on line 131]]>HTML_Template_Sigma Feature/Change Request
Reported by wevrem
2018年05月21日T21:08:54+00:00
PHP: Irrelevant OS: Ubuntu18.04 Package Version: 1.3.0
Description:
------------
I'm running PHP7.2 and it complains that HTML_Template_Sigma is
using a method with the same name as the class, rather than a
bona fide constructor, `__constructor`. Can we change that?
Test script:
---------------
class Template extends \HTML_Template_Sigma {
function __construct($tfile, $tdir, $cdir=null) {
parent::__construct($tdir, $cdir);
$this->loadTemplateFile($tfile);
}
}
Expected result:
----------------
No warning or error expected
Actual result:
--------------
PHP Deprecated: Methods with the same name as their class will
not be constructors in a future version of PHP;
HTML_Template_Sigma has a deprecated constructor in
/usr/share/php/HTML/Template/Sigma.php on line 131]]>2018年05月21日T21:08:54+00:00michaeljweaver at mac dot comHTML_Template_Sigma Feature/Change RequestHTML_Template_Sigma: Feature/Change Request 20967 [Open] use __construct() constructor
http://pear.php.net/bugs/20967
HTML_Template_Sigma Feature/Change Request
Reported by edlman
2015年10月16日T15:10:44+00:00
PHP: 5.6.5 OS: Linux Package Version: 1.3.0
Description:
------------
Please apply attached patch to use recommended __construct() constructor instead of deprecated HTML_Template_Sigma()]]>HTML_Template_Sigma Feature/Change Request
Reported by edlman
2015年10月16日T15:10:44+00:00
PHP: 5.6.5 OS: Linux Package Version: 1.3.0
Description:
------------
Please apply attached patch to use recommended __construct() constructor instead of deprecated HTML_Template_Sigma()]]>2015年10月16日T15:10:44+00:00martin dot edlman at gmail dot comHTML_Template_Sigma Feature/Change Request