title: Adding the ZeroMQ PHP extension to XAMPP on Windows 10 and PHP7
body: <p>I am having issues adding the ZeroMQ PHP extension to XAMPP. </p>
  
  <p>Setup: Windows 10, PHP7, XAMPP (7.0.9)</p>
  
  <p><strong>Steps I already took:</strong></p>
  
  <ol>
  <li><p>Added PHP (<code>D:\xampp7\php</code>) and PHP extensions (<code>D:\xampp7\php\ext</code>) directories to system variable (PATH)</p></li>
  <li><p>Followed the instructions on <a href="http://zeromq.org/bindings%3Aphp#toc4" rel="noreferrer">zeromq.org</a>. I downloaded <a href="http://windows.php.net/downloads/pecl/releases/zmq/1.1.3/php_zmq-1.1.3-7.0-ts-vc14-x86.zip" rel="noreferrer">x86ts</a> version from the <a href="http://pecl.php.net/package/zmq/1.1.3/windows" rel="noreferrer">pecl repository</a> as the listed snapshot link (<a href="http://snapshot.zero.mq/" rel="noreferrer">http://snapshot.zero.mq/</a>) was down.</p></li>
  <li><p>Copied <code>libzmq.dll</code> into PHP directory and <code>php_zmq.dll</code> into the PHP extension directory </p></li>
  <li><p>Updated <code>php.ini</code> (<code>D:\xampp7\php\php.ini</code>) by adding <code>extension=php_zmq.dll</code> and checked the extensions directory which is <code>extension_dir="D:\xampp7\php\ext"</code></p></li>
  <li><p>Restarted XAMPP via the control panel.</p></li>
  </ol>
  
  <p>The Apache error log shows the following:</p>
  
  <pre><code>[Sat Nov 26 18:30:27.461679 2016] [ssl:warn] [pid 15280:tid 588] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
  [Sat Nov 26 18:30:27.546320 2016] [core:warn] [pid 15280:tid 588] AH00098: pid file D:/xampp7/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
  [Sat Nov 26 18:30:27.630955 2016] [ssl:warn] [pid 15280:tid 588] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
  PHP Warning:  PHP Startup: Unable to load dynamic library 'D:\\xampp7\\php\\ext\\php_zmq.dll' - Das angegebene Modul wurde nicht gefunden.\r\n in Unknown on line 0
  [Sat Nov 26 18:30:27.662208 2016] [mpm_winnt:notice] [pid 15280:tid 588] AH00455: Apache/2.4.23 (Win32) OpenSSL/1.0.2h PHP/7.0.9 configured -- resuming normal operations
  [Sat Nov 26 18:30:27.662208 2016] [mpm_winnt:notice] [pid 15280:tid 588] AH00456: Apache Lounge VC14 Server built: Jul  1 2016 11:09:37
  [Sat Nov 26 18:30:27.662208 2016] [core:notice] [pid 15280:tid 588] AH00094: Command line: 'd:\\xampp7\\apache\\bin\\httpd.exe -d D:/xampp7/apache'
  [Sat Nov 26 18:30:27.662208 2016] [mpm_winnt:notice] [pid 15280:tid 588] AH00418: Parent: Created child process 964
  [Sat Nov 26 18:30:28.363210 2016] [ssl:warn] [pid 964:tid 616] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
  </code></pre>
  
  <hr>
  
  <p><strong>Update:</strong></p>
  
  <p>It looks like the module cannot be found, but if I add the x64 Version the Apache error log indicates that the module is not a not a valid Win32 application.</p>
  
  <pre><code>PHP Warning:  PHP Startup: Unable to load dynamic library 'D:\\xampp7\\php\\ext\\php_zmq.dll' - %1 ist keine zul\xef\xbf\xbdssige Win32-Anwendung.\r\n in Unknown on line 0
  </code></pre>
  
  <hr>
  
  <p><strong>Solution:</strong></p>
  
  <p>Adding <code>LoadFile "D:/xampp7/php/libzmq.dll"</code>to httpd.conf fixed my issue.</p>