From c410e2033a814b170ae45cd07ad9225e809a575a Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 28 Feb 2007 08:05:36 +0000 Subject: [PATCH] Fixed php4 version detection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5740 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 9fdced525..62ef01a1e 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -2128,7 +2128,7 @@ function gosa_ldap_explode_dn($dn,$config = NULL,$verify_in_ldap=false) function is_php4() { - return (strpos(phpversion(), 4) === 0); + return (preg_match('/^4/', phpversion())); } -- 2.30.2