[Bug 35355] AppDB codebase needs to be updated to comply with modern php coding standards

wine-bugs at winehq.org wine-bugs at winehq.org
Fri Jan 10 09:15:33 CST 2014


http://bugs.winehq.org/show_bug.cgi?id=35355

--- Comment #1 from Jeremy Newman <jnewman at 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

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list