0

I have enabled enchant on my wamp server(V 2.4.9), I am using PHP(V 5.5.12), when I start the server I get the following warning:

PHP Startup:enchant: Unable to initialize module Module compiled with module API=20100525, PHP compiled with module API=20121212, Theese options need to match.

How to solve this problem?

dreamPr
  • 321
  • 1
  • 2
  • 14
  • It appears the module you are using was compiled in 2010. Look for one compiled later. (12/12/2012) – Brandon White Oct 14 '15 at 21:18
  • When you say wamp v 2.4.9, do you mean: [Wamp server 2.5](http://sourceforge.net/projects/wampserver/files/WampServer%202/Wampserver%202.5/) which ships apache 2.4.9, php 5.5.12? And did you notice the `Don't Use previous WampServer Extensions/Addons.` warning on that page? – VolkerK Oct 15 '15 at 02:00
  • Yes, Iam using 2.5 wamp server. Original Enchant extension was not working on server – dreamPr Oct 15 '15 at 13:04

1 Answers1

0

It means your module was compiled for php 5.4 but you're using php 5.5.
You need to look for a compatible php 5.5 version of this module.

see https://github.com/php/php-src/blob/PHP-5.4/Zend/zend_modules.h
and https://github.com/php/php-src/blob/PHP-5.5/Zend/zend_modules.h
(search for ZEND_MODULE_API_NO)

VolkerK
  • 95,432
  • 20
  • 163
  • 226