Skip to content
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

PHP 5.4.0RC3 compatibility #2806

Closed
robocoder opened this issue Nov 30, 2011 · 17 comments
Closed

PHP 5.4.0RC3 compatibility #2806

robocoder opened this issue Nov 30, 2011 · 17 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@robocoder
Copy link
Contributor

Tested with PHP 5.4.0 RC3

@robocoder
Copy link
Contributor Author

(In [5493]) refs #2806

@robocoder
Copy link
Contributor Author

(In [5494]) refs #2806

@robocoder
Copy link
Contributor Author

Notices to fix:

Strict Standards: Declaration of MockPiwik_Access::checkUserHasAdminAccess() should be compatible with Piwik_Access::checkUserHasAdminAccess($idSites)
Strict Standards: Declaration of MockPiwik_Access::checkUserHasViewAccess() should be compatible with Piwik_Access::checkUserHasViewAccess($idSites)
Strict Standards: Declaration of MockPiwik_Access::reloadAccess() should be compatible with Piwik_Access::reloadAccess(Piwik_Auth $auth = NULL)
Strict Standards: Declaration of MockPiwik_Access::setSuperUser() should be compatible with Piwik_Access::setSuperUser($bool = true)
Strict Standards: Declaration of Piwik_DataTable_Renderer_Csv::renderHeader() should be compatible with Piwik_DataTable_Renderer::renderHeader()
Strict Standards: Declaration of Piwik_Period_Year::toString() should be compatible with Piwik_Period::toString($format = 'Y-m-d')
Strict Standards: Non-static method Mock::generate() should not be called statically, assuming $this from incompatible context
Strict Standards: Non-static method Mock::generatePartial() should not be called statically, assuming $this from incompatible context
Strict Standards: Non-static method SimpleErrorQueue::getSeverityAsString() should not be called statically
Strict Standards: Non-static method SimpleReporter::inCli() should not be called statically
Strict Standards: Non-static method SimpleTest::getContext() should not be called statically
Strict Standards: Non-static method SimpleTest::getContext() should not be called statically, assuming $this from incompatible context
Strict Standards: Non-static method SimpleTest::getMockBaseClass() should not be called statically, assuming $this from incompatible context
Strict Standards: Non-static method SimpleTest::ignore() should not be called statically, assuming $this from incompatible context
Strict Standards: Non-static method SimpleTest::ignoreParentsIfIgnored() should not be called statically, assuming $this from incompatible context
Strict Standards: Non-static method SimpleTest::isIgnored() should not be called statically, assuming $this from incompatible context
Strict Standards: Non-static method SimpleTestCompatibility::isA() should not be called statically, assuming $this from incompatible context
Strict Standards: Non-static method TestSuite::getBaseTestCase() should not be called statically, assuming $this from incompatible context

@robocoder
Copy link
Contributor Author

(In [5506]) refs #2806 - refactor fix for Declaration of Piwik_Period_Year::toString() should be compatible with Piwik_Period::toString($format = 'Y-m-d')

@robocoder
Copy link
Contributor Author

(In [5507]) refs #2806 - minimal changes to simpletest to accommodate php 5.4.0rc2 incompatibilities

@robocoder
Copy link
Contributor Author

(In [5508]) fixes #2806, refs #2809 - quick fix

@robocoder
Copy link
Contributor Author

Sorry that was just the first batch -- there are additional notices to be addressed. =P

@robocoder
Copy link
Contributor Author

(In [5511]) refs #2806 - not sure why but r5506 introduced a regression; reverting and adding a dummy parameter to satisfy php 5.4

@robocoder
Copy link
Contributor Author

(In [5512]) refs #2806 - silent array to string conversion now emits notice

11 Nov 2011, PHP 5.4.0 RC1
- General improvements:
  . Changed silent conversion of array to string to produce a notice. (Patrick)

@robocoder
Copy link
Contributor Author

(In [5518]) refs #2806

@robocoder
Copy link
Contributor Author

Sorry, I had a dyslexic morning and ref'd the wrong ticket in my commits.

(In [5513]) refs #2806 - Non-static method Piwik_Tracker_Db::isProfilingEnabled() should not be called statically

(In [refs #2806 - Unexpected PHP error Array to string conversion) severity

(In [refs #2806 - Unexpected PHP error Array to string conversion) and Only variables should be passed by reference

(In [5516]) refs #2806

(In [refs #2806 - revert regression in 5515)

@robocoder
Copy link
Contributor Author

(In [5524]) refs #2806

@robocoder
Copy link
Contributor Author

(In [5525]) refs #2806

@robocoder
Copy link
Contributor Author

(In [5526]) refs #2806 - fix message

@robocoder
Copy link
Contributor Author

(In [5527]) fixes #2806 - finally, remove this webtest (Piwik 1.0 is not 5.4.0 compatible); we still test the install/update from 1.1.1 (which is about a year old now)

@robocoder
Copy link
Contributor Author

(In [5538]) refs #2806 - these were caught by php -l

@robocoder
Copy link
Contributor Author

(In [5539]) refs #2806 - make it clearer that this parameter is ignored

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

1 participant