wasimshaikh / php-calendar

Automatically exported from code.google.com/p/php-calendar
1 stars 0 forks source link

Strict Standards warning #108

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Strict Standards: Redefining already defined constructor for class Html in 
/var/www/html/calendar/includes/html.php on line 43
2.Strict Standards: Redefining already defined constructor for class 
AttributeList in /var/www/html/calendar/includes/html.php on line 189

These warnings occur in PHP Version 5.3.6

Original issue reported on code.google.com by lacu...@gmail.com on 7 Nov 2012 at 3:33

GoogleCodeExporter commented 9 years ago
There is another issue similar to this one.

Strict Standards: Declaration of Form::get_html() should be compatible with 
that of FormGroup::get_html() in /var/www/html/calendar/includes/form.php on 
line 801

Since the constructor is changed from 5.3.3, a class like following has problem.

The following codes may caused strict warning since 5.3.3. 
class A {
  A () {
     ...
  }

  __constructor () {
    ....
  }
}

However, the following one are OK!

class A {
  __constructor () {
    ....
  }

  A () {
     ...
  }
}

Original comment by lacu...@gmail.com on 7 Nov 2012 at 4:47

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r573.

Original comment by sproctor@gmail.com on 7 Nov 2012 at 5:25

GoogleCodeExporter commented 9 years ago
The get_html issue is fixed by r574

Original comment by sproctor@gmail.com on 7 Nov 2012 at 3:53