From: <var...@us...> - 2010-05-31 12:55:31
|
Revision: 7452 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7452&view=rev Author: vargenau Date: 2010-05-31 12:55:25 +0000 (Mon, 31 May 2010) Log Message: ----------- Let's assume PHP >= 4.2 Modified Paths: -------------- trunk/lib/config.php Modified: trunk/lib/config.php =================================================================== --- trunk/lib/config.php 2010-05-31 12:50:50 UTC (rev 7451) +++ trunk/lib/config.php 2010-05-31 12:55:25 UTC (rev 7452) @@ -423,27 +423,6 @@ return preg_match("%^${requri}[^/]*$%", $GLOBALS['HTTP_SERVER_VARS']['SCRIPT_NAME']); } -// >= php-4.1.0 -if (!function_exists('array_key_exists')) { // lib/IniConfig.php, sqlite, adodb, ... - function array_key_exists($item, $array) { - return isset($array[$item]); - } -} - -// => php-4.0.5 -if (!function_exists('is_scalar')) { // lib/stdlib.php:wikihash() - function is_scalar($x) { - return is_numeric($x) or is_string($x) or is_float($x) or is_bool($x); - } -} - -// => php-4.2.0. pear wants to break old php's! DB uses it now. -if (!function_exists('is_a')) { - function is_a($item,$class) { - return isa($item,$class); - } -} - // needed < php5 // by bradhuizenga at softhome dot net from the php docs if (!function_exists('str_ireplace')) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |