Code

Fixed php4 version detection.
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 28 Feb 2007 08:04:58 +0000 (08:04 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 28 Feb 2007 08:04:58 +0000 (08:04 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5739 594d385d-05f5-0310-b6e9-bd551577e9d8

include/functions.inc

index 1d8c1ff6dd736b52458d29677ee5881c25430fc0..3f6025ecb38506fdbeada6d1c3914bb1b93d5c45 100644 (file)
@@ -2152,7 +2152,7 @@ function is_department_name_reserved($name,$base)
 
 function is_php4()
 {
-  return (strpos(phpversion(), 4) === 0);
+  return (preg_match('/^4/', phpversion()));
 }