http://bugs.winehq.org/show_bug.cgi?id=35355
Bug ID: 35355 Summary: AppDB codebase needs to be updated to comply with modern php coding standards Product: WineHQ Apps Database Version: unspecified Hardware: x86 OS: Linux Status: NEW Severity: normal Priority: P2 Component: appdb-unknown Assignee: wine-bugs@winehq.org Reporter: dimesio@earthlink.net Classification: Unclassified
Filing per http://bugs.winehq.org/show_bug.cgi?id=35350#c2.
http://bugs.winehq.org/show_bug.cgi?id=35355
Rosanne DiMesio dimesio@earthlink.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alexsornes@gmail.com, | |jnewman@codeweavers.com
http://bugs.winehq.org/show_bug.cgi?id=35355
--- Comment #1 from Jeremy Newman jnewman@codeweavers.com --- Basically, what needs to be done is the code needs to be audited for PHP 5.3+ compliance.
Here is a short list of what needs to be changed. There are more, but these are the obvious ones:
* all ereg() and ereg_match() calls need to be replaced with preg() and preg_match. Same goes for split(), use preg_split()
* you can no longer pass references to functions. func(&$foo) is illegal. The function needs to be defined with parameters that use a reference. i.e.: function foo (&$param){}
A complete list is here: http://www.php.net/manual/en/migration53.deprecated.php
http://bugs.winehq.org/show_bug.cgi?id=35355
--- Comment #2 from Alexander Nicolaysen Sørnes alexsornes@gmail.com --- I have committed changes to fix quite a few static/non-static function invocations, as well as removing any calls to ereg* and mktime without arguments.
Notices should probably be disabled for a while longer, but compliance should now be pretty close.
https://bugs.winehq.org/show_bug.cgi?id=35355
--- Comment #3 from Rosanne DiMesio dimesio@earthlink.net --- This is mostly fixed, but I still see the following:
1. On the form for processing screenshots,
Strict Standards: Non-static method appData::getDefaultReply() should not be called statically, assuming $this from incompatible context in /home/winehq/opt/appdb/include/screenshot.php on line 818
appears between submitted screenshot and the reply text box.
2. In the Control Center, running Update Application Maintainer states produces a page with thousands of lines of
Strict Standards: Non-static method maintainer::versionHasMaintainer() should not be called statically, assuming $this from incompatible context in /home/winehq/opt/appdb/include/version.php on line 1554
Running Update Version Maintainer States has a similar result, but with line 254 referenced at the end.
https://bugs.winehq.org/show_bug.cgi?id=35355
Rosanne DiMesio dimesio@earthlink.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED
--- Comment #4 from Rosanne DiMesio dimesio@earthlink.net --- Fixed.
https://bugs.winehq.org/show_bug.cgi?id=35355
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Bruno Jesus 00cpxxx@gmail.com --- Closing appdb fixed bug.