Build and load Gmagick in PHP 7.0 on Windows 10, making Apache to stop service

Zom <[email protected]> Fri, 20 Apr 2018 14:29:20 +0800
Newsgroups gmane.comp.php.windows
Message-ID <[email protected]>
Hi all,

I built a gmagick extension for PHP 7.0 (VC14 x64 Thread Safe) on Windows 10. 
PHP 7.0 is the only version I use.

I followed the steps in 
https://wiki.php.net/internals/windows/stepbystepbuild_sdk_2and built the 
php_gmagick.dll. Then I copied to the extension folder of php, enabled it in 
php.ini, and restarted Apache. I tested the extentsion by checking 
phpinfo.php from browser (chrome). It took a long time to load until Apache 
stopped service automatically. If I disable gmagick and restart Apache the 
phpinfo.php shows normally.
There is no requirement of Graphicsmagick and Gmagick version, so I wonder if 
the version I picked might affect the building of extension.

This is my building environment:
- Windows 10 Pro 64 bit
- Visual C++ 14.0 (Visual Studio 2015)
- PHP SDK downloaded fromhttps://github.com/OSTC/php-sdk-binary-tools
- PHP source (PHP 7.0 (7.0.29)) downloaded fromhttps://windows.php.net/
- PHP dependencies is fetched by calling phpsdk_deps -u
- Gmagick 2.0.4RC1 downloaded fromhttp://pecl.php.net/
- Graphicsmagick 1.3.27 source downloaded from Graphicsmagick official page
- I invoked phpsdk-vc14-x64.bat during the building process

Is there anything wrong with the building environment?Where should I look to 
troubleshooting?
Any other issues I should pay attention when building Gmagick on Windows?
Thanks!

Z


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php