diff -r -u suphp-0.5.2-sander/src/suphp.c suphp-0.5.2-tobias/src/suphp.c
--- suphp-0.5.2-sander/src/suphp.c	2005-02-11 09:46:26.000000000 +0100
+++ suphp-0.5.2-tobias/src/suphp.c	2005-02-11 10:20:40.000000000 +0100
@@ -73,7 +73,8 @@
  suphp_unsetenv("PHP_SU_GROUP");
 #endif
 
- phpversion = getenv("PHP_VERSION");
+ if ((phpversion = getenv("PHP_VERSION")) == NULL)
+  error_msg_exit(ERRCODE_WRONG_ENVIRONMENT, "PHP_VERSION is not set", __FILE__, __LINE__);
  
  envp = suphp_copyenv((const char **) environ);
 
