Hello all, as 'abandon' user of ADDT... i hope we can together make ADDT compatible for future release of PHP.
Currently PHP 5.3 our main 'enemy'.
The 'patch' that i summarized far from other thread:
1. function split() found in:
occurences found: one instance per file
possible fix: try replacing with preg_split()
2. function mysql_escape_string() found in:
occurences found: three instances
possible fix: try replacing with mysql_real_escape_string() but better to use function_exists so it still keep compatible with previous php version, for example :
$insert_values .= “‘” . mysql_real_escape_string($value) . “‘, “;
$insert_values .= “‘” . mysql_escape_string($value) . “‘, “;
Other than that a handful of other ADDT files make an ini_get() – call to some deprecated PHP.INI functions such as safe_mode — but I´m not sure if this would trigger errors, because ADDT just tries to retrieve the related INI values and doesn´t atempt to change them.
3. find "= &new" and replace with "= new";
4. Look inside includes/tng/tNG_insert.class.php, tNG_update.class.php, tNG_delete.class.php and tNG_custom.class.php and replace
parent::tNG_fields($connection); with parent::tNG($connection);
I've no idea about solution no.4, since parent:: usually(as far as i know) use for direct access a method on parent's class... but the solution works for me
As We're talking about live project here (i'm serious about this) without legitimate technical support. I have an idea if we can make a group and hire an expert programmer to audit ADDT's includes folder so it will compatible with PHP 5.3.x.. But, does it mean we break our license policy with adobe ?
Hope this thread will alive and so does our ADDT's project