0
votes

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?

1
Just checking, this blog entry seems to be 3 years old, have you followed the current documentation at saxonica.com/saxon-c/index.xml ? Installation problems tend to be tricky and require interaction to solve, which doesn't suit the SO model too well, so opening a tracker at saxonica.plan.io may be the best way forward. - Michael Kay
And this works to for php5? I have tried much documentation, but it dont works - Denis Jurkovsek
Yes, the instructions cover both PHP5 and PHP7. O'Neil is the expert and he's OOO today (just back from a US trip) but I've alerted him to the post. - Michael Kay
Okay, thank you, i wann try this! - Denis Jurkovsek
now i get this error, after the 'make' command: Makefile:194: recipe for target 'php5_saxon.lo' failed - Denis Jurkovsek

1 Answers

0
votes

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