From 4593f205a06e2164bf7229fd4356d9085b18411d Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 28 Feb 2007 08:04:58 +0000 Subject: [PATCH] Fixed php4 version detection. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5739 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/functions.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())); } -- 2.30.2