Search code examples
apacheubuntusaxonphp-extensionsaxon-c

Why Apache dont activate Saxon/C extension?


i have installed Saxon/C extension step by step, by this documentation: http://zf4.biz/blog/installing-the-saxon-c-php-extension

I must install it for PHP5, so this documentation was great. It all works fine and if i use this "php -m | grep saxon -i" command they shows me the extension:

PHP Warning:  Module 'Saxon/C' already loaded in Unknown on line 0
Saxon/C

But in the phpinfo(); the extension is not listet on.

Anybody know why this dont works?


Solution

  • This bug issue is related to the issue #4151. The call to the method getUnderlyingValue() should take not arguments

    On line 836 of the file php5_saxon.cpp please replace:

    obj = ooth->xdmNode->getUnderlyingValue(NULL);

    With the following:

    obj = ooth->xdmNode->getUnderlyingValue();

    Alternatively you can download the following file which contains the fix:

    php5_saxon.cpp

    You should then be able to build the Saxon/c extension for PHP5. Installation instructions given here http://www.saxonica.com/saxon-c/doc/html/index.html