phpwindowszorba

PHP can't initialize zorba_api's module


Dose anyone know how to fix this error?

I installed zorba and it worked well like bellow.

C: \>zorba -q 1+1

< ?xml version="1.0" encoding="UTF-8"?>

2
C:\ >

Then I changed PHP.ini to add extension module .

extension=zorba_api.dll 

Then tied restart Apache but Apache didn't start.

I could't get any messages from Apache logs,

but I got messages If I tried this PHP operation

C: \>php -v

PHP Warning:  PHP Startup: zorba_api: Unable to initialize module

Module compiled with build ID=API20090626,TS,VC9

PHP    compiled with build ID=API20090626,TS,VC6

These options need to match

 in Unknown on line 0

PHP 5.3.4 (cli) (built: Dec  9 2010 21:37:21)

Copyright (c) 1997-2010 The PHP Group

Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

C:\>

The massage said compile option isn't match between Module and PHP.

I guess I need zorba_api compiled with VC6. But How can I get it? Where can I take it?

I use followin products

Windows Server 2008 R2 Standard

Apache2.2.17

PHP-5.3.4 VC6ts

zorba 2.1.00


Solution

  • You could try to compile Zorba with VC6 or compile Zorba with any VS Version (at your own risk) but changing the signature to VC6.
    Update: Zorba doesn't support VC6 since it uses some features from C++0x.