From: cajus Date: Wed, 28 Feb 2007 08:04:58 +0000 (+0000) Subject: Fixed php4 version detection. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4593f205a06e2164bf7229fd4356d9085b18411d;p=gosa.git Fixed php4 version detection. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5739 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/functions.inc b/include/functions.inc index 1d8c1ff6d..3f6025ecb 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -2152,7 +2152,7 @@ function is_department_name_reserved($name,$base) function is_php4() { - return (strpos(phpversion(), 4) === 0); + return (preg_match('/^4/', phpversion())); }