Yet more Net_DNS2 fixes.
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 16 Nov 2010 07:10:54 +0000 (00:10 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 16 Nov 2010 07:10:54 +0000 (00:10 -0700)
Net_DNS2 is annoyingly broken in several different ways.

framework/Core/lib/Horde/Core/Factory/Dns.php

index 612891b..a98872b 100644 (file)
@@ -12,6 +12,12 @@ class Horde_Core_Factory_Dns
             $resolver->setServers('/etc/resolv.conf');
         }
 
+        // TODO: Fixes for Net_DNS2 v1.0.0
+        if (!defined('SOCK_DGRAM')) {
+            define('SOCK_STREAM', 1);
+            define('SOCK_DGRAM', 2);
+        }
+
         spl_autoload_unregister('Net_DNS2::autoload');
 
         return $resolver;