added php4.3 compatibility function stripos, to get back php4.3 compatibility after the recent replacement of stristr with stripos

This commit is contained in:
Ralf Becker 2006-12-09 14:20:10 +00:00
parent 1bcde359fc
commit 297690b22c

View File

@ -884,3 +884,14 @@ class so_sql
return $cache[$cache_key] =& $ret;
}
}
if (!function_exists("stripos"))
{
/**
* stripos for php < 5
*/
function stripos($str,$needle,$offset=0)
{
return strpos(strtolower($str),strtolower($needle),$offset);
}
}