title: ZeroMQ with PHP 7 in Ubuntu does not compile ("error: too many arguments to function")
body: <p>I have upgraded php5.6 to php7, but zeromq extension makes a lot of problems. Where can I download the correct zmq.so file for php7? None of the official sites offer a version for php7 that works (I'm using apache2.4).</p>
  
  <p>I've followed along the following tutorial: <a href="http://alexandervn.nl/2012/05/03/install-zeromq-php-ubuntu/" rel="nofollow noreferrer">How to install ZeroMQ</a>. </p>
  
  <p>The step "Installing ZeroMQ" is working fine, but the second step "Installing the PHP binding" is failing when I execute the command "make" with the following error:</p>
  
  <pre><code>"/home/puser/zeromq-4.1.4/php-zmq/zmq.c:2740:2: error: too many arguments to 
  function 'zend_register_internal_class_ex' php_zmq_device_exception_sc_entry = 
  zend_register_internal_class_ex(&amp;ce_device_exception, php_zmq_exception_sc_entry, 
  "ZMQException" TSRMLS_CC)  ^ In file included from /usr/include/php/20151012/main/php.h:40:
  0, from /home/puser/zeromq-4.1.4/php-zmq/php_zmq.h:45,from /home/puser/zeromq-4.1.4/php-zmq
  /zmq.c:31:/usr/include/php/20151012/Zend/zend_API.h:290:28: note: declared here ZEND_API 
  zend_class_entry *zend_register_internal_class_ex(zend_class_entry *class_entry, 
  zend_class_entry *parent_ce);"
  </code></pre>
  
  <p>When using php 5.6, this error does not appear. How to fix this?</p>
  
  <h2>Edit</h2>
  
  <p>I 've found that ZeroMQ is currently "not working" with php7 from this post: <a href="https://serverpilot.io/community/articles/how-to-install-the-php-zeromq-extension.html" rel="nofollow noreferrer">ZeroMQ installation</a>.  Is there any workaround?</p>