mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
fix for mbstring.func_overload 7: ereg_* where looping infinit, changed to preg_*
This commit is contained in:
parent
52a3cae790
commit
5e9dbe95c5
@ -724,13 +724,13 @@
|
||||
}
|
||||
rename($file,$old_file);
|
||||
}
|
||||
$fnew = eregi_replace("(.*\\$"."setup_info\\['$app'\\]\\['version'\\][ \\t]*=[ \\t]*')[^']*('.*)","\\1$new"."\\2",$fcontent);
|
||||
$fnew = preg_replace('/(.*\\$'."setup_info\\['$app'\\]\\['version'\\][ \\t]*=[ \\t]*)'[^']*'(.*)/i","\\1'$new'\\2",$fcontent);
|
||||
|
||||
if ($tables != '')
|
||||
{
|
||||
if ($setup_info[$app]['tables']) // if there is already tables array, update it
|
||||
{
|
||||
$fnew = eregi_replace("(.*\\$"."setup_info\\['$app'\\]\\['tables'\\][ \\t]*=[ \\t]*array\()[^)]*","\\1$tables",$fwas=$fnew);
|
||||
$fnew = preg_replace('/(.*\\$'."setup_info\\['$app'\\]\\['tables'\\][ \\t]*=[ \\t]*array\()[^)]*/i","\\1$tables",$fwas=$fnew);
|
||||
|
||||
if ($fwas == $fnew) // nothing changed => tables are in single lines
|
||||
{
|
||||
@ -739,7 +739,7 @@
|
||||
$stage = 0; // 0 = before, 1 = in, 2 = after tables section
|
||||
foreach($fwas as $line)
|
||||
{
|
||||
if (eregi("(.*\\$"."setup_info\\['$app'\\]\\['tables'\\]\\[[ \\t]*\\][ \\t]*=[ \\t]*)'",$line,$parts))
|
||||
if (preg_match('/(.*\\$'."setup_info\\['$app'\\]\\['tables'\\]\\[[ \\t]*\\][ \\t]*=[ \\t]*)'/i",$line,$parts))
|
||||
{
|
||||
if ($stage == 0) // first line of tables-section
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user