title: xdebug for php 7 on ubuntu 14.04
body: <p>I'm trying to get xdebug working on PHP 7. I'm build the xdebug.so file from version <a href="http://xdebug.org/files/xdebug-2.4.0rc4.tgz" rel="noreferrer">http://xdebug.org/files/xdebug-2.4.0rc4.tgz</a>. The phpize output looks correct (<code>Zend Extension Api No:  320151012</code>) however I get <code>Xdebug requires Zend Engine API version 220121212.</code> from PHP.</p>
  
  <p>So I've followed these instructions:</p>
  
  <blockquote>
    <p>Tailored Installation Instructions</p>
    
    <p>Summary</p>
    
    <p>Xdebug installed: no Server API: Apache 2.0 Handler Windows: no Zend
    Server: no PHP Version: 7.0.9-1 Zend API nr: 320151012 PHP API nr:
    20151012 Debug Build: no Thread Safe Build: no Configuration File
    Path: /etc/php/7.0/apache2 Configuration File:
    /etc/php/7.0/apache2/php.ini Extensions directory:
    /usr/lib/php/20151012 Instructions</p>
    
    <p>Download xdebug-2.4.1.tgz Unpack the downloaded file with tar -xvzf
    xdebug-2.4.1.tgz Run: cd xdebug-2.4.1 Run: phpize (See the FAQ if you
    don't have phpize.</p>
    
    <p>As part of its output it should show:</p>
    
    <p>Configuring for: ... Zend Module Api No:      20151012 Zend Extension
    Api No:   320151012 If it does not, you are using the wrong phpize.
    Please follow this FAQ entry and skip the next step.</p>
    
    <p>Run: ./configure Run: make Run: cp modules/xdebug.so
    /usr/lib/php/20151012 Edit /etc/php/7.0/apache2/php.ini and add the
    line zend_extension = /usr/lib/php/20151012/xdebug.so Restart the
    webserver</p>
  </blockquote>
  
  <p>With the exception that I've installed php7.0-dev instead of php5 <code>apt-get install -y php7.0-dev</code>.</p>
  
  <p>When I run the <code>phpize</code> command I get the following output:</p>
  
  <blockquote>
    <p>Configuring for:</p>
    
    <p>PHP Api Version:         20151012</p>
    
    <p>Zend Module Api No:      20151012</p>
    
    <p>Zend Extension Api No:  320151012</p>
  </blockquote>
  
  <p>As expected. However when I run PHP I get:</p>
  
  <blockquote>
    <p>Xdebug requires Zend Engine API version 220121212.</p>
    
    <p>The Zend Engine API version 320151012 which is installed, is newer.</p>
    
    <p>Contact Derick Rethans at <a href="http://xdebug.org/docs/faq#api" rel="noreferrer">http://xdebug.org/docs/faq#api</a> for a later
    version of Xdebug.</p>
  </blockquote>
  
  <p>I'm obviously doing something wrong somewhere! Any help on debugging the issue is very appreciated! :)</p>