From: <var...@us...> - 2010-06-17 15:43:24
|
Revision: 7549 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7549&view=rev Author: vargenau Date: 2010-06-17 15:43:18 +0000 (Thu, 17 Jun 2010) Log Message: ----------- We assume PHP >= 4.3.10 Modified Paths: -------------- trunk/lib/config.php Modified: trunk/lib/config.php =================================================================== --- trunk/lib/config.php 2010-06-17 15:38:19 UTC (rev 7548) +++ trunk/lib/config.php 2010-06-17 15:43:18 UTC (rev 7549) @@ -349,26 +349,6 @@ '); } -/** - * array_diff_assoc() returns an array containing all the values from array1 that are not - * present in any of the other arguments. Note that the keys are used in the comparison - * unlike array_diff(). In core since php-4.3.0 - * Our fallback here supports only hashes and two args. - * $array1 = array("a" => "green", "b" => "brown", "c" => "blue"); - * $array2 = array("a" => "green", "y" => "yellow", "r" => "red"); - * => b => brown, c => blue - */ -if (!function_exists('array_diff_assoc')) { - function array_diff_assoc($a1, $a2) { - $result = array(); - foreach ($a1 as $k => $v) { - if (!isset($a2[$k]) or !$a2[$k]) - $result[$k] = $v; - } - return $result; - } -} - function getUploadFilePath() { if (defined('UPLOAD_FILE_PATH')) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |