diff --git a/api.php b/api.php
index <HASH>..<HASH> 100755
--- a/api.php
+++ b/api.php
@@ -110,6 +110,11 @@ class api
   protected $addons;
   public $json;
 
+  public function __construct()
+  { // Otherwise we will get php segfault
+
+  }
+
   public function phoxy_api_init()
   {
     $this->json = true;
Fix php segfault at class construction