From 40168aca6a4cd1074189f295ba1ef874d46ae2fa Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sun, 21 Mar 2010 09:05:41 +0000 Subject: [PATCH] "fix to understand and replace ereg(i) with array-subscriptions as parameters (eg. $_REQUEST['something'])" --- doc/fix_depricated.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/fix_depricated.php b/doc/fix_depricated.php index e40d6e3f25..a33d9085ca 100755 --- a/doc/fix_depricated.php +++ b/doc/fix_depricated.php @@ -10,6 +10,7 @@ * @link http://www.egroupware.org * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License * @author RalfBecker@outdoor-training.de + * @copyright 2009/10 by RalfBecker@outdoor-training.de * @version $Id$ */ @@ -61,7 +62,7 @@ function fix_depricated($file,$replace_file=false) $lines = strtr($lines,$replace); } // PHP Deprecated: Function ereg() is deprecated - if (preg_match_all('/!?eregi? *\\(("[^"]+"[^,]*|\'[^\']+\'[^,]*), *(\$[A-Za-z0-9_]+)(, *\$[A-Za-z0-9_]+)?\)([ )&|]+)/m',$lines,$matches)) + if (preg_match_all('/!?eregi? *\\(("[^"]+"[^,]*|\'[^\']+\'[^,]*), *(\$[A-Za-z0-9_\[\]\$\'\"]+)(, *\$[A-Za-z0-9_\[\]\$\'\"]+)?\)([ )&|]+)/m',$lines,$matches)) { $replace = array(); //print_r($matches);