From: cajus Date: Wed, 28 Feb 2007 08:05:36 +0000 (+0000) Subject: Fixed php4 version detection X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c410e2033a814b170ae45cd07ad9225e809a575a;p=gosa.git Fixed php4 version detection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5740 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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())); }