title: Writing PHP extensions using Delphi 2010 and php4Delphi
body: <p>Firstly this is about <a href="http://users.telenet.be/ws36637/php4delphi.html" rel="nofollow">php4Delphi</a> not <a href="http://www.embarcadero.com/products/radphp" rel="nofollow">RadPHP</a> (formerly Delphi For PHP).</p>
  
  <p>Using</p>
  
  <ul>
  <li>Delphi 2010</li>
  <li>PHP 5.3.6 (VC9, NTS)</li>
  <li>php4Delphi 7.2 (compiled with VC9 directive)</li>
  <li>Windows Server 2008 R2</li>
  <li>IIS 7</li>
  </ul>
  
  <p>When trying to run the php4Delphi delphi_math.dll example extension on the IIS/PHP server I see the following error in the C:\Windows\Temp\php-errors.log file.</p>
  
  <blockquote>
    <p>[15-Jun-2011 17:58:42] PHP Warning: 
    PHP Startup: Unable to load dynamic
    library 'C:\Program Files
    (x86)\PHP\ext\delphi_math.dll' -
    A dynamic link library (DLL)
    initialization routine failed. in
    Unknown on line 0</p>
  </blockquote>
  
  <p>I've already resolved the initial issue of PHP not finding my extension so it's not a path style problem. </p>
  
  <p>I'm thinking that php4Delphi 7.2 may not support the latest PHP 5.3.6. Has anyone got this configuration working for them?</p>