title: PHP extension not built with same debug and thread safe as PHP
body: <p>I built a number of custom PHP extensions under windows 8-10 years ago. I made the move to Ubuntu Linux for all of my web stuff some years ago and find I need to create another custom extension. I'll be doing the development under Ubuntu this time.</p>
  
  <p>I've created a very simple extension (a no-op actually) just to make sure I have the build process working. It's not.</p>
  
  <p>Here is what I have done:</p>
  
  <ul>
  <li>Cloned PHP from Git  </li>
  <li>Checked out PHP-5.5  </li>
  <li>Configured with --disable-all --enable-debug --enable-maintainer-zts \<br>
  --prefix=</li>
  <li>Build PHP<br>
  Success php -i shows:<br>
  Zend Extension Build => API220121212,TS,debug<br>
  PHP Extension Build => API20121212,TS,debug  </li>
  <li>Created ext/a1 for my new, very simple extension  </li>
  <li>Created the basic extension (from Sara Goleman's book)  </li>
  <li>Ran phpize in ext/a1  </li>
  <li>Ran ./configure --enable-a1  </li>
  <li>Ran make<br>
  Build was successful.<br>
  Copied a1.so to the extensions directory<br>
  phpdir/bin/php -dextension=a1.so -v<br>
  Fails. Results in:<br>
  Module compiled with build ID=API20121212,NTS<br>
  PHP    compiled with build ID=API20121212,TS,debug</li>
  </ul>
  
  <p>So. Color me confused. According to what I've read, the phpize command is supposed to match the extension build settings to the php build settings.<br>
  I've apparently missed something basic here somewhere.</p>
  
  <p>Help will be most appreciated.</p>