# HG changeset patch # User Dan # Date 1222278462 14400 # Node ID 6d8b9497e44beb6d0681f053817fe5c910803cf9 # Parent a6b339665650a41cdc4c54cc885b2f5fa0aec886 Added check for PHP 5.1.0 and improved error handling for missing pcntl diff -r a6b339665650 -r 6d8b9497e44b greyhound.php --- a/greyhound.php Wed Sep 24 13:47:23 2008 -0400 +++ b/greyhound.php Wed Sep 24 13:47:42 2008 -0400 @@ -81,9 +81,16 @@ } status('doing PHP capabilities check'); + +if ( version_compare(PHP_VERSION, '5.1.0', '<') ) +{ + burnout('The minimum required version of PHP for Greyhound is 5.1.0. PHP 5.2.x is recommended.'); +} + if ( !function_exists('pcntl_signal') ) { - warning('System does not support POSIX functions. Termination signals will result in unclean shutdown.'); + warning('System does not support POSIX functions. Termination signals will result in unclean shutdown and multi-process webserving will not work.'); + $allow_fork = false; } if ( !function_exists('simplexml_load_file') )