diff options
author | Brion Vibber <brion@pobox.com> | 2010-03-18 17:19:28 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-03-18 17:19:28 -0700 |
commit | 3e2e88b0dfb0f5b3baa336a9b3f69e8e8244c8e6 (patch) | |
tree | 7de5edd8b9c74d5a29f7443b1a52a269f5f9d6e3 /scripts | |
parent | 9c5af9a38f82afee92a78303aaa4604794ef6866 (diff) | |
parent | 01a1e882afeb78542b02e4643c5d8a2fa50c2206 (diff) |
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/xmppdaemon.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/xmppdaemon.php b/scripts/xmppdaemon.php index 26c7991b8..abd7cc22b 100755 --- a/scripts/xmppdaemon.php +++ b/scripts/xmppdaemon.php @@ -98,7 +98,15 @@ class XmppMaster extends IoMaster // don't have to find an XMPP site to start up when using --all mode. if (common_config('xmpp','enabled')==false) { print "Aborting daemon - xmpp is disabled\n"; - exit(); + exit(1); +} + +if (version_compare(PHP_VERSION, '5.2.6', '<')) { + $arch = php_uname('m'); + if ($arch == 'x86_64' || $arch == 'amd64') { + print "Aborting daemon - 64-bit PHP prior to 5.2.6 has known bugs in stream_select; you are running " . PHP_VERSION . " on $arch.\n"; + exit(1); + } } if (have_option('i', 'id')) { |