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

Bug #20944 Redefining already defined constructor for class HTML_CSS
Submitted: 2015-08-31 13:39 UTC
From: tomor Assigned:
Status: Open Package: HTML_CSS (version 1.5.4)
PHP Version: 5.5.28 OS: centos 2.6.32-573.3.1.el6.x86_64
Roadmaps: (Not assigned)    
Subscription  


 [2015-08-31 13:39 UTC] tomor (tomas ptacnik)
Description: ------------ Since php 5.4 you should not have function __construct and old type constructor - method name same as class - HTML_CSS() in one class. When you do, php generates warning - Redefining already defined constructor for class HTML_CSS I suggest just to delete old type constructor - function HTML_CSS($attributes = array(), $errorPrefs = array()) I found old report here - https://pear.php.net/bugs/bug.php?id=16255 Can you create new major version and fix this issue please? Test script: --------------- require_once 'HTML/CSS.php'; new HTML_CSS(); Expected result: ---------------- No PHP warning is generated. Actual result: -------------- PHP Notice: Redefining already defined constructor for class HTML_CSS

Comments