From: Ryan Kaldari Date: Wed, 27 Jul 2011 23:54:21 +0000 (+0000) Subject: make sure sockets are enabled X-Git-Tag: 1.31.0-rc.0~28582 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=416459559fc3d5ce9b81f337d88ff17efdbee734;p=lhc%2Fweb%2Fwiklou.git make sure sockets are enabled --- diff --git a/includes/profiler/ProfilerSimpleUDP.php b/includes/profiler/ProfilerSimpleUDP.php index c11c3205f0..77fdf34341 100644 --- a/includes/profiler/ProfilerSimpleUDP.php +++ b/includes/profiler/ProfilerSimpleUDP.php @@ -19,6 +19,11 @@ class ProfilerSimpleUDP extends ProfilerSimple { # Less than minimum, ignore return; } + + if ( !function_exists( 'socket_create' ) ) + # Sockets are not enabled + return; + } $sock = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP); $plength=0;