ActiveState Powered by ActiveState

ActiveState Community


PHP Startup: xxx : Unable to initialize module

Posted by DRHansen on 2008-03-14 14:35

Using Open Komodo 4.3 on WinXPP.

All was working fine until I updated PHP to 2.5.2 today. Now whenever I open any .php file I get:

Warning

      PHP Startup: mbstring: Unable to initialize module
      Module compiled with module API=20050922, debug=0, thread safety=1
      PHP compiled with module API=20060613,debug=0,  thread safety=1
      These options need to match.

The warning is repeated for curl, gd, and mysql. They're also repeated several time.

How can I stop the warnings or fix the problem?

Thanks,

DRHansen

billk | Fri, 2008-03-14 18:21

Do you mean php 5.2.2?

I had a similar problem after I upgraded to php 5.2.2 After surfing around a little, I took a guess and copied (after backing up, of course) the libmysql.dll in my previous (5.0.*) installation over the new one.

That seemed to do it for me.

-- Bill

jeffg | Fri, 2008-03-14 21:18

The only was to get that error message is if you are trying to load an extension that was built for a different version of PHP.

--
JeffG

DRHansen | Sat, 2008-03-15 06:43

@billk - Yes, 5.2.2, sorry.

@JeffG - OK, but I'm not aware of loading any PHP extensions. Is this something that happens during the virgin install of Komodo? If so, can I force that to happen again after the PHP update?

I did discover that the behavior is linked to Editor-> Smart Editing -> Enable background syntax checking after XXXX msecs.
Disabling that stops the warnings at every change to the file.

TIA,

DRHansen

jeffg | Sat, 2008-03-15 15:04

Somewhere in your php.ini file is the line:

extension=php_mbstring.dll

...or similar. As well, in your PHP directory there is a copy of php_mbstring.dll that is not compatible with PHP 5.2.2. You need to get rid of both of these things in order for this to work.

--
JeffG

DRHansen | Sat, 2008-03-15 15:35

Thanks Jeff that did it.

DRHansen

-->