From: Alexandre Emsenhuber Date: Wed, 6 Aug 2008 17:21:22 +0000 (+0000) Subject: For compatibility with PHP 5.0, it does not accept array as param type X-Git-Tag: 1.31.0-rc.0~46076 X-Git-Url: https://git.cyclocoop.org/%20%27.%28%24debut%20%20%20%24par_page%29.%27?a=commitdiff_plain;h=35add7ec8f88d86dc00bc8835f580a4705ea7c23;p=lhc%2Fweb%2Fwiklou.git For compatibility with PHP 5.0, it does not accept array as param type --- diff --git a/includes/Diff.php b/includes/Diff.php index a1aa805a0f..7c4ebcdefa 100644 --- a/includes/Diff.php +++ b/includes/Diff.php @@ -30,7 +30,7 @@ * * @author Guy Van den Broeck */ -function wikidiff3_diff(array $from, array $to, $boundRunningTime=FALSE, $max_NP_before_bound = 800000){ +function wikidiff3_diff( /*array*/ $from, /*array*/ $to, $boundRunningTime=FALSE, $max_NP_before_bound = 800000){ wfProfileIn( __METHOD__ ); $m = sizeof($from); @@ -101,7 +101,7 @@ function wikidiff3_diff(array $from, array $to, $boundRunningTime=FALSE, $max_NP return array($result_from, $result_to); } -function wikidiff3_diffPart(array $a, array $b, InLcs $a_inLcs, InLcs $b_inLcs, $m, $n, $offsetx, $offsety, $bestKnownLcs, $boundRunningTime=FALSE, $max_NP_before_bound = 800000){ +function wikidiff3_diffPart( /*array*/ $a, /*array*/ $b, InLcs $a_inLcs, InLcs $b_inLcs, $m, $n, $offsetx, $offsety, $bestKnownLcs, $boundRunningTime=FALSE, $max_NP_before_bound = 800000){ if($bestKnownLcs==0 || $m==0 || $n==0){ return; }