New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-static method should not be called statically errors #92

Closed
lobotomy opened this Issue Sep 14, 2010 · 2 comments

Comments

Projects
None yet
2 participants
@lobotomy

lobotomy commented Sep 14, 2010

In PHP 5.3 with E-STRICT error reporting set, the following errors are produced:

Strict Standards: Non-static method SimplePie_Misc::fix_protocol() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 833

Strict Standards: Non-static method SimplePie_Misc::normalize_url() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 9287

Strict Standards: Non-static method SimplePie_Misc::parse_url() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 9288

Strict Standards: Non-static method SimplePie_Misc::parse_url() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 1542

Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method SimplePie_Cache::create() should not be called statically in simplepie.inc on line 1546

Strict Standards: Non-static method SimplePie_Misc::get_curl_version() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 7675

Strict Standards: Non-static method SimplePie_Misc::get_curl_version() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 7687

Strict Standards: Non-static method SimplePie_Misc::xml_encoding() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 1721

Strict Standards: Non-static method SimplePie_Misc::xml_encoding() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 1740

Strict Standards: Non-static method SimplePie_Misc::change_encoding() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 1759

Strict Standards: Non-static method SimplePie_Misc::encoding() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 9411

Strict Standards: Non-static method SimplePie_Misc::encoding() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 9412

Strict Standards: Non-static method SimplePie_Parse_Date::get() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 3609

Strict Standards: Non-static method SimplePie_Parse_Date::get() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 3609

Strict Standards: Non-static method SimplePie_Parse_Date::get() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 3609

Strict Standards: Non-static method SimplePie_Parse_Date::get() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 3609

Strict Standards: Non-static method SimplePie_Parse_Date::get() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 3609

Strict Standards: Non-static method SimplePie_Misc::absolutize_url() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 14929

Strict Standards: Non-static method SimplePie_IRI::absolutize() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 9103

Strict Standards: Non-static method SimplePie_Misc::absolutize_url() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 14929

Strict Standards: Non-static method SimplePie_IRI::absolutize() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 9103

Strict Standards: Non-static method SimplePie_Misc::absolutize_url() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 14929

Strict Standards: Non-static method SimplePie_IRI::absolutize() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 9103

Strict Standards: Non-static method SimplePie_Misc::absolutize_url() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 14929

Strict Standards: Non-static method SimplePie_IRI::absolutize() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 9103

Strict Standards: Non-static method SimplePie_Misc::is_isegment_nz_nc() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 2631

Strict Standards: Non-static method SimplePie_Misc::is_isegment_nz_nc() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 2631

Strict Standards: Non-static method SimplePie_Misc::absolutize_url() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 14929

Strict Standards: Non-static method SimplePie_IRI::absolutize() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 9103

Strict Standards: Non-static method SimplePie_Misc::absolutize_url() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 14929

Strict Standards: Non-static method SimplePie_IRI::absolutize() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 9103

Strict Standards: Non-static method SimplePie_Misc::is_isegment_nz_nc() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 3730

Strict Standards: Non-static method SimplePie_Misc::array_unique() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 5564

Strict Standards: Non-static method SimplePie_Misc::get_element() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 14949

Strict Standards: Non-static method SimplePie_Misc::get_element() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 14949

Strict Standards: Non-static method SimplePie_Misc::get_element() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 14949

Strict Standards: Non-static method SimplePie_Misc::get_element() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 14949

Strict Standards: Non-static method SimplePie_Misc::get_element() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 14949

Strict Standards: Non-static method SimplePie_Misc::get_element() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 14949

Strict Standards: Non-static method SimplePie_Misc::get_element() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 14949

Strict Standards: Non-static method SimplePie_Misc::absolutize_url() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 14929

Strict Standards: Non-static method SimplePie_IRI::absolutize() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 9103

Strict Standards: Non-static method SimplePie_Misc::absolutize_url() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 14929

Strict Standards: Non-static method SimplePie_IRI::absolutize() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 9103

Strict Standards: Non-static method SimplePie_Misc::is_isegment_nz_nc() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 3730

Strict Standards: Non-static method SimplePie_Misc::array_unique() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 5564

Strict Standards: Non-static method SimplePie_Misc::get_element() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 14949

Strict Standards: Non-static method SimplePie_Misc::get_element() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 14949

Strict Standards: Non-static method SimplePie_Misc::get_element() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 14949

Strict Standards: Non-static method SimplePie_Misc::get_element() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 14949

Strict Standards: Non-static method SimplePie_Misc::get_element() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 14949

Strict Standards: Non-static method SimplePie_Misc::get_element() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 14949

Strict Standards: Non-static method SimplePie_Misc::get_element() should not be called statically, assuming $this from incompatible context in simplepie.inc on line 14949

@rmccue

This comment has been minimized.

Contributor

rmccue commented Oct 5, 2010

These methods should be marked as static.

@rmccue

This comment has been minimized.

Contributor

rmccue commented Jun 1, 2011

Confirmed that these are all fixed in master (1.3-dev). Closing as fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment